mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	add some more debug
This commit is contained in:
		
							parent
							
								
									e8aef6b4bd
								
							
						
					
					
						commit
						7c93c29cfd
					
				
					 3 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
					@ -829,6 +829,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
 | 
				
			||||||
		SPA_FALLTHROUGH
 | 
							SPA_FALLTHROUGH
 | 
				
			||||||
	case SPA_NODE_COMMAND_Pause:
 | 
						case SPA_NODE_COMMAND_Pause:
 | 
				
			||||||
		this->started = false;
 | 
							this->started = false;
 | 
				
			||||||
 | 
							spa_log_debug(this->log, "%p: stopped", this);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
| 
						 | 
					@ -852,6 +853,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
 | 
				
			||||||
	switch (SPA_NODE_COMMAND_ID(command)) {
 | 
						switch (SPA_NODE_COMMAND_ID(command)) {
 | 
				
			||||||
	case SPA_NODE_COMMAND_Start:
 | 
						case SPA_NODE_COMMAND_Start:
 | 
				
			||||||
		this->started = true;
 | 
							this->started = true;
 | 
				
			||||||
 | 
							spa_log_debug(this->log, "%p: started", this);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return res;
 | 
						return res;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1263,7 +1263,7 @@ again:
 | 
				
			||||||
			n->current_pending = false;
 | 
								n->current_pending = false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		pw_log_debug("%p: driving %p running:%d passive:%d quantum:%u '%s'",
 | 
							pw_log_debug("%p: driver %p running:%d passive:%d quantum:%u '%s'",
 | 
				
			||||||
				context, n, running, n->passive, quantum, n->name);
 | 
									context, n, running, n->passive, quantum, n->name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* first change the node states of the followers to the new target */
 | 
							/* first change the node states of the followers to the new target */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -247,7 +247,8 @@ static int start_node(struct pw_impl_node *this)
 | 
				
			||||||
	if (impl->pending_state >= PW_NODE_STATE_RUNNING)
 | 
						if (impl->pending_state >= PW_NODE_STATE_RUNNING)
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_debug("%p: start node driving:%d driver:%d", this, this->driving, this->driver);
 | 
						pw_log_debug("%p: start node driving:%d driver:%d added:%d", this,
 | 
				
			||||||
 | 
								this->driving, this->driver, this->added);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!(this->driving && this->driver)) {
 | 
						if (!(this->driving && this->driver)) {
 | 
				
			||||||
		impl->pending_play = true;
 | 
							impl->pending_play = true;
 | 
				
			||||||
| 
						 | 
					@ -357,6 +358,9 @@ static void node_update_state(struct pw_impl_node *node, enum pw_node_state stat
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	switch (state) {
 | 
						switch (state) {
 | 
				
			||||||
	case PW_NODE_STATE_RUNNING:
 | 
						case PW_NODE_STATE_RUNNING:
 | 
				
			||||||
 | 
							pw_log_debug("%p: start node driving:%d driver:%d added:%d", node,
 | 
				
			||||||
 | 
									node->driving, node->driver, node->added);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (node->driving && node->driver) {
 | 
							if (node->driving && node->driver) {
 | 
				
			||||||
			res = spa_node_send_command(node->node,
 | 
								res = spa_node_send_command(node->node,
 | 
				
			||||||
				&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Start));
 | 
									&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Start));
 | 
				
			||||||
| 
						 | 
					@ -438,6 +442,9 @@ static int suspend_node(struct pw_impl_node *this)
 | 
				
			||||||
		p->state = PW_IMPL_PORT_STATE_CONFIGURE;
 | 
							p->state = PW_IMPL_PORT_STATE_CONFIGURE;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						pw_log_debug("%p: suspend node driving:%d driver:%d added:%d", this,
 | 
				
			||||||
 | 
								this->driving, this->driver, this->added);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	res = spa_node_send_command(this->node,
 | 
						res = spa_node_send_command(this->node,
 | 
				
			||||||
				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Suspend));
 | 
									    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Suspend));
 | 
				
			||||||
	if (res == -ENOTSUP)
 | 
						if (res == -ENOTSUP)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue