mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	introspect: improve instrospection
Pass changed properties around so that we can print them
This commit is contained in:
		
							parent
							
								
									51f18b540a
								
							
						
					
					
						commit
						8361f74646
					
				
					 8 changed files with 110 additions and 59 deletions
				
			
		| 
						 | 
				
			
			@ -179,13 +179,14 @@ subscription_cb (PinosSubscribe         *subscribe,
 | 
			
		|||
                 PinosSubscriptionEvent  event,
 | 
			
		||||
                 PinosSubscriptionFlags  flags,
 | 
			
		||||
                 GDBusProxy             *object,
 | 
			
		||||
                 GStrv                   properties,
 | 
			
		||||
                 gpointer                user_data)
 | 
			
		||||
{
 | 
			
		||||
  PinosStream *stream = PINOS_STREAM (user_data);
 | 
			
		||||
  PinosStreamPrivate *priv = stream->priv;
 | 
			
		||||
 | 
			
		||||
  switch (flags) {
 | 
			
		||||
    case PINOS_SUBSCRIPTION_FLAGS_SOURCE_OUTPUT:
 | 
			
		||||
    case PINOS_SUBSCRIPTION_FLAG_SOURCE_OUTPUT:
 | 
			
		||||
      if (event == PINOS_SUBSCRIPTION_EVENT_REMOVE) {
 | 
			
		||||
        if (object == priv->source_output) {
 | 
			
		||||
          priv->error = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_CLOSED, "output disappeared");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue