mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtp-sap: send out a default channelmap if none specified
RAVENNA devices (at least Lawo) seem to error out on streams without this property Co-authored-by: Dewi Seignard <dewiweb@gmail.com>
This commit is contained in:
		
							parent
							
								
									c66aad9a7c
								
							
						
					
					
						commit
						6a64ec8b8f
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -553,6 +553,13 @@ static int send_sap(struct impl *impl, struct session *sess, bool bye)
 | 
			
		|||
			spa_strbuf_append(&buf,
 | 
			
		||||
				"i=%d channels: %s\n", sdp->channels,
 | 
			
		||||
				sdp->channelmap);
 | 
			
		||||
		} else {
 | 
			
		||||
			spa_strbuf_append(&buf, "i=%d channels:", sdp->channels);
 | 
			
		||||
			for (uint i = 1; i <= sdp->channels; i++) {
 | 
			
		||||
				if (i > 1) spa_strbuf_append(&buf, ",");
 | 
			
		||||
				spa_strbuf_append(&buf, " AUX%u", i);
 | 
			
		||||
			}
 | 
			
		||||
			spa_strbuf_append(&buf, "\n");
 | 
			
		||||
		}
 | 
			
		||||
		spa_strbuf_append(&buf,
 | 
			
		||||
			"a=recvonly\n"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue