mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	modules: initialize the latency params
Otherwise we get nonsense values for the direction. See #4731
This commit is contained in:
		
							parent
							
								
									190d49d874
								
							
						
					
					
						commit
						c08ef84745
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -542,6 +542,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl->module = module;
 | 
						impl->module = module;
 | 
				
			||||||
	impl->context = context;
 | 
						impl->context = context;
 | 
				
			||||||
 | 
						impl->latency[SPA_DIRECTION_INPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);
 | 
				
			||||||
 | 
						impl->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
 | 
						if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
 | 
				
			||||||
		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
 | 
							pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1667,6 +1667,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl->module = module;
 | 
						impl->module = module;
 | 
				
			||||||
	impl->context = context;
 | 
						impl->context = context;
 | 
				
			||||||
 | 
						impl->latency[SPA_DIRECTION_INPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);
 | 
				
			||||||
 | 
						impl->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
 | 
						if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
 | 
				
			||||||
		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-chain-%u-%u", pid, id);
 | 
							pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-chain-%u-%u", pid, id);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue