mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: wait for transport
Wait for the transport to be configured before we exit from client_open. We then have at least an activation or even a driver set.
This commit is contained in:
		
							parent
							
								
									4d143c5751
								
							
						
					
					
						commit
						14fbd4f520
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
					@ -1143,6 +1143,7 @@ static int client_node_transport(void *object,
 | 
				
			||||||
					  true, on_rtsocket_condition, c);
 | 
										  true, on_rtsocket_condition, c);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	c->has_transport = true;
 | 
						c->has_transport = true;
 | 
				
			||||||
 | 
						pw_thread_loop_signal(c->context.loop, false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -2206,9 +2207,16 @@ jack_client_t * jack_client_open (const char *client_name,
 | 
				
			||||||
                                    PW_CLIENT_NODE_UPDATE_INFO,
 | 
					                                    PW_CLIENT_NODE_UPDATE_INFO,
 | 
				
			||||||
				    0, NULL, &ni);
 | 
									    0, NULL, &ni);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (do_sync(client) < 0)
 | 
						while (true) {
 | 
				
			||||||
 | 
						        pw_thread_loop_wait(client->context.loop);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (client->error)
 | 
				
			||||||
			goto init_failed;
 | 
								goto init_failed;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (client->has_transport)
 | 
				
			||||||
 | 
								break;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_thread_loop_unlock(client->context.loop);
 | 
						pw_thread_loop_unlock(client->context.loop);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (status)
 | 
						if (status)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue