mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Send packets with proper size.
This commit is contained in:
		
							parent
							
								
									fe2b8c359b
								
							
						
					
					
						commit
						be49c92a38
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -127,7 +127,7 @@ static int bt_audioservice_send(int sk, const bt_audio_msg_header_t *msg) {
 | 
			
		|||
    type = bt_audio_strtype(msg->type);
 | 
			
		||||
    name = bt_audio_strname(msg->name);
 | 
			
		||||
    pa_log_debug("sending: %s -> %s", type, name);
 | 
			
		||||
    if (send(sk, msg, BT_SUGGESTED_BUFFER_SIZE, 0) > 0)
 | 
			
		||||
    if (send(sk, msg, msg->length, 0) > 0)
 | 
			
		||||
        e = 0;
 | 
			
		||||
    else {
 | 
			
		||||
        e = -errno;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue