mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	link: only idle when not already suspended
This commit is contained in:
		
							parent
							
								
									8804980c8f
								
							
						
					
					
						commit
						82d5ca1edc
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
					@ -971,7 +971,8 @@ do_link_remove_done (SpaLoop        *loop,
 | 
				
			||||||
    clear_port_buffers (this, this->input);
 | 
					    clear_port_buffers (this, this->input);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (this->input->node->n_used_input_links == 0 &&
 | 
					    if (this->input->node->n_used_input_links == 0 &&
 | 
				
			||||||
        this->input->node->n_used_output_links == 0)
 | 
					        this->input->node->n_used_output_links == 0 &&
 | 
				
			||||||
 | 
					        this->input->node->state > PINOS_NODE_STATE_IDLE)
 | 
				
			||||||
        pinos_node_update_state (this->input->node, PINOS_NODE_STATE_IDLE, NULL);
 | 
					        pinos_node_update_state (this->input->node, PINOS_NODE_STATE_IDLE, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this->input = NULL;
 | 
					    this->input = NULL;
 | 
				
			||||||
| 
						 | 
					@ -983,7 +984,8 @@ do_link_remove_done (SpaLoop        *loop,
 | 
				
			||||||
    clear_port_buffers (this, this->output);
 | 
					    clear_port_buffers (this, this->output);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (this->output->node->n_used_input_links == 0 &&
 | 
					    if (this->output->node->n_used_input_links == 0 &&
 | 
				
			||||||
        this->output->node->n_used_output_links == 0)
 | 
					        this->output->node->n_used_output_links == 0 &&
 | 
				
			||||||
 | 
					        this->output->node->state > PINOS_NODE_STATE_IDLE)
 | 
				
			||||||
      pinos_node_update_state (this->output->node, PINOS_NODE_STATE_IDLE, NULL);
 | 
					      pinos_node_update_state (this->output->node, PINOS_NODE_STATE_IDLE, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this->output = NULL;
 | 
					    this->output = NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue