mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire: module-roc-{sink,source}: pass 0 to pw_properties_get_uint32()
				
					
				
			There is no reason to use `data->rate` as the default value since it will be zero, so just pass 0 explicitly.
This commit is contained in:
		
							parent
							
								
									0a3bd825cd
								
							
						
					
					
						commit
						68c0a13694
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -425,7 +425,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
			
		|||
	if (pw_properties_get(playback_props, PW_KEY_NODE_NETWORK) == NULL)
 | 
			
		||||
		pw_properties_set(playback_props, PW_KEY_NODE_NETWORK, "true");
 | 
			
		||||
 | 
			
		||||
	data->rate = pw_properties_get_uint32(playback_props, PW_KEY_AUDIO_RATE, data->rate);
 | 
			
		||||
	data->rate = pw_properties_get_uint32(playback_props, PW_KEY_AUDIO_RATE, 0);
 | 
			
		||||
	if (data->rate == 0)
 | 
			
		||||
		data->rate = PW_ROC_DEFAULT_RATE;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue