mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	tools: dump sndfile loginfo on error when verbose
This commit is contained in:
		
							parent
							
								
									487c7ee933
								
							
						
					
					
						commit
						f0cfe9449d
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1485,6 +1485,11 @@ static int setup_sndfile(struct data *data)
 | 
			
		|||
	if (!data->file) {
 | 
			
		||||
		fprintf(stderr, "sndfile: failed to open audio file \"%s\": %s\n",
 | 
			
		||||
				data->filename, sf_strerror(NULL));
 | 
			
		||||
		if (data->verbose) {
 | 
			
		||||
			char loginfo[4096];
 | 
			
		||||
			if (sf_command(NULL, SFC_GET_LOG_INFO, &loginfo, sizeof(loginfo)) > 0)
 | 
			
		||||
				fprintf(stderr, "%s\n", loginfo);
 | 
			
		||||
		}
 | 
			
		||||
		return -EIO;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue