mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Remove direction
Direction is tied to the port id. Handle nodes with fixed ports.
This commit is contained in:
		
							parent
							
								
									7d8e2d53f7
								
							
						
					
					
						commit
						9485bd77e7
					
				
					 25 changed files with 246 additions and 165 deletions
				
			
		| 
						 | 
				
			
			@ -157,7 +157,6 @@ spa_volume_node_send_command (SpaNode       *node,
 | 
			
		|||
        SpaEventStateChange sc;
 | 
			
		||||
 | 
			
		||||
        event.type = SPA_EVENT_TYPE_STATE_CHANGE;
 | 
			
		||||
        event.port_id = -1;
 | 
			
		||||
        event.data = ≻
 | 
			
		||||
        event.size = sizeof (sc);
 | 
			
		||||
        sc.state = SPA_NODE_STATE_STREAMING;
 | 
			
		||||
| 
						 | 
				
			
			@ -172,7 +171,6 @@ spa_volume_node_send_command (SpaNode       *node,
 | 
			
		|||
        SpaEventStateChange sc;
 | 
			
		||||
 | 
			
		||||
        event.type = SPA_EVENT_TYPE_STATE_CHANGE;
 | 
			
		||||
        event.port_id = -1;
 | 
			
		||||
        event.data = ≻
 | 
			
		||||
        event.size = sizeof (sc);
 | 
			
		||||
        sc.state = SPA_NODE_STATE_PAUSED;
 | 
			
		||||
| 
						 | 
				
			
			@ -250,7 +248,6 @@ spa_volume_node_get_port_ids (SpaNode       *node,
 | 
			
		|||
 | 
			
		||||
static SpaResult
 | 
			
		||||
spa_volume_node_add_port (SpaNode        *node,
 | 
			
		||||
                          SpaDirection    direction,
 | 
			
		||||
                          uint32_t        port_id)
 | 
			
		||||
{
 | 
			
		||||
  return SPA_RESULT_NOT_IMPLEMENTED;
 | 
			
		||||
| 
						 | 
				
			
			@ -524,9 +521,9 @@ release_buffer (SpaVolume *this, SpaBuffer *buffer)
 | 
			
		|||
  SpaEventReuseBuffer rb;
 | 
			
		||||
 | 
			
		||||
  event.type = SPA_EVENT_TYPE_REUSE_BUFFER;
 | 
			
		||||
  event.port_id = 0;
 | 
			
		||||
  event.data = &rb;
 | 
			
		||||
  event.size = sizeof (rb);
 | 
			
		||||
  rb.port_id = 0;
 | 
			
		||||
  rb.buffer_id = buffer->id;
 | 
			
		||||
  this->event_cb (&this->node, &event, this->user_data);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue