[vlc-commits] aout: lower the error level in case of passthrough error
Thomas Guillem
git at videolan.org
Thu Sep 17 11:15:51 CEST 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 15 16:29:24 2020 +0200| [f38584ff337674ab12e776d640a14906f60893d7] | committer: Thomas Guillem
aout: lower the error level in case of passthrough error
This error message was confusing the user since the audio playback
works normally after getting such error message.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f38584ff337674ab12e776d640a14906f60893d7
---
src/audio_output/output.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index e144159e05..1d4c01421d 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -605,7 +605,11 @@ int aout_OutputNew (audio_output_t *aout)
vlc_mutex_unlock(&owner->lock);
if (ret)
{
- msg_Err (aout, "failed to start audio output");
+ if (AOUT_FMT_LINEAR(fmt))
+ msg_Err (aout, "failed to start audio output");
+ else
+ msg_Warn (aout, "failed to start passthrough audio output, "
+ "failing back to linear format");
return -1;
}
assert(aout->flush && aout->play && aout->time_get && aout->pause);
More information about the vlc-commits
mailing list