mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
tools: dump sndfile loginfo on error when verbose
This commit is contained in:
parent
28ed09b155
commit
7359491b97
1 changed files with 5 additions and 0 deletions
|
|
@ -1631,6 +1631,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