mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-bridge: fix state of source
This commit is contained in:
		
							parent
							
								
									3194d5ca81
								
							
						
					
					
						commit
						fead5c18d6
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1057,6 +1057,7 @@ static int flush_messages(struct client *client)
 | 
			
		|||
		while (true) {
 | 
			
		||||
			res = send(client->source->fd, data, size, MSG_NOSIGNAL | MSG_DONTWAIT);
 | 
			
		||||
			if (res < 0) {
 | 
			
		||||
				pw_log_info("send channel:%d %zu, res %d: %m", m->channel, size, res);
 | 
			
		||||
				if (errno == EINTR)
 | 
			
		||||
					continue;
 | 
			
		||||
				else
 | 
			
		||||
| 
						 | 
				
			
			@ -2221,7 +2222,7 @@ static int do_get_record_latency(struct client *client, uint32_t command, uint32
 | 
			
		|||
		TAG_U32, tag,
 | 
			
		||||
		TAG_USEC, 0,			/* monitor latency */
 | 
			
		||||
		TAG_USEC, stream->delay,	/* source latency + queued */
 | 
			
		||||
		TAG_BOOLEAN, true,	/* playing state */
 | 
			
		||||
		TAG_BOOLEAN, !stream->corked,	/* playing state */
 | 
			
		||||
		TAG_TIMEVAL, &tv,
 | 
			
		||||
		TAG_TIMEVAL, &stream->timestamp,
 | 
			
		||||
		TAG_S64, stream->write_index,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue