mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa-node: first activate, then register
This commit is contained in:
		
							parent
							
								
									d7f1be0376
								
							
						
					
					
						commit
						23dbf76e85
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -79,13 +79,13 @@ static void complete_init(struct impl *impl)
 | 
				
			||||||
	if (SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_DISABLE))
 | 
						if (SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_DISABLE))
 | 
				
			||||||
		pw_node_set_enabled(this, false);
 | 
							pw_node_set_enabled(this, false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_ACTIVATE))
 | 
				
			||||||
 | 
							pw_node_set_active(this, true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_NO_REGISTER))
 | 
						if (!SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_NO_REGISTER))
 | 
				
			||||||
		pw_node_register(this, impl->owner, impl->parent, NULL);
 | 
							pw_node_register(this, impl->owner, impl->parent, NULL);
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		pw_node_initialized(this);
 | 
							pw_node_initialized(this);
 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_ACTIVATE))
 | 
					 | 
				
			||||||
		pw_node_set_active(this, true);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void on_node_done(void *data, uint32_t seq, int res)
 | 
					static void on_node_done(void *data, uint32_t seq, int res)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue