mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: always listen from messages from pinos
Always listen for messages from Pinos, even when we are sending a stream because we want to get the release-fd messages.
This commit is contained in:
		
							parent
							
								
									6864ea9830
								
							
						
					
					
						commit
						1e5c892564
					
				
					 1 changed files with 3 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -838,9 +838,6 @@ on_socket_condition (GSocket      *socket,
 | 
			
		|||
 | 
			
		||||
      g_assert (len == sizeof (PinosStackHeader));
 | 
			
		||||
 | 
			
		||||
      if (num_messages == 0)
 | 
			
		||||
        break;
 | 
			
		||||
 | 
			
		||||
      /* now we know the total length */
 | 
			
		||||
      need += hdr->length;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -909,11 +906,9 @@ handle_socket (PinosStream *stream, gint fd)
 | 
			
		|||
 | 
			
		||||
    case PINOS_STREAM_MODE_BUFFER:
 | 
			
		||||
    {
 | 
			
		||||
      if (!priv->provide) {
 | 
			
		||||
        priv->socket_source = g_socket_create_source (priv->socket, G_IO_IN, NULL);
 | 
			
		||||
        g_source_set_callback (priv->socket_source, (GSourceFunc) on_socket_condition, stream, NULL);
 | 
			
		||||
        g_source_attach (priv->socket_source, priv->context->priv->context);
 | 
			
		||||
      }
 | 
			
		||||
      priv->socket_source = g_socket_create_source (priv->socket, G_IO_IN, NULL);
 | 
			
		||||
      g_source_set_callback (priv->socket_source, (GSourceFunc) on_socket_condition, stream, NULL);
 | 
			
		||||
      g_source_attach (priv->socket_source, priv->context->priv->context);
 | 
			
		||||
      break;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue