mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Move subscription signal to context
Emit the subscription signal event directly from the context, This is easier and it avoids having two subscribe objects. Remove client proxy property from the context, we don't need it anymore. Only expose objects when the client manager has a name-owner.
This commit is contained in:
		
							parent
							
								
									2b1558d0e5
								
							
						
					
					
						commit
						e151150cad
					
				
					 4 changed files with 115 additions and 100 deletions
				
			
		| 
						 | 
				
			
			@ -69,12 +69,8 @@ on_state_notify (GObject    *gobject,
 | 
			
		|||
      break;
 | 
			
		||||
    case PV_CONTEXT_STATE_READY:
 | 
			
		||||
    {
 | 
			
		||||
      PvSubscribe *subscribe;
 | 
			
		||||
 | 
			
		||||
      subscribe = pv_subscribe_new ();
 | 
			
		||||
      g_object_set (subscribe, "subscription-mask", PV_SUBSCRIPTION_FLAGS_ALL, NULL);
 | 
			
		||||
      g_signal_connect (subscribe, "subscription-event", (GCallback) subscription_cb, NULL);
 | 
			
		||||
      pv_context_set_subscribe (c, subscribe);
 | 
			
		||||
      g_object_set (c, "subscription-mask", PV_SUBSCRIPTION_FLAGS_ALL, NULL);
 | 
			
		||||
      g_signal_connect (c, "subscription-event", (GCallback) subscription_cb, NULL);
 | 
			
		||||
      break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue