mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-cat: prefer AU format when using stdin/stdout
WAV is actually not usable for streaming output by sndfile. See #4629
This commit is contained in:
		
							parent
							
								
									4176caca30
								
							
						
					
					
						commit
						081cb6848e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1343,7 +1343,7 @@ static void format_from_filename(SF_INFO *info, const char *filename)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (format == -1)
 | 
						if (format == -1)
 | 
				
			||||||
		format = SF_FORMAT_WAV;
 | 
							format = spa_streq(filename, "-") ? SF_FORMAT_AU : SF_FORMAT_WAV;
 | 
				
			||||||
	if (format == SF_FORMAT_WAV && info->channels > 2)
 | 
						if (format == SF_FORMAT_WAV && info->channels > 2)
 | 
				
			||||||
		format = SF_FORMAT_WAVEX;
 | 
							format = SF_FORMAT_WAVEX;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue