mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	deal with a possibly failing pa_channel_map_init_auto() correctly
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2105 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									a3e820fca7
								
							
						
					
					
						commit
						86b9ef8c96
					
				
					 13 changed files with 39 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -97,7 +97,7 @@ pa_source_output* pa_source_output_new(
 | 
			
		|||
        if (data->source->channel_map.channels == data->sample_spec.channels)
 | 
			
		||||
            data->channel_map = data->source->channel_map;
 | 
			
		||||
        else
 | 
			
		||||
            pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
			
		||||
            pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue