[vlc-commits] auhal: add error message when format change failed
David Fuhrmann
git at videolan.org
Sat Mar 22 16:56:42 CET 2014
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Mar 22 14:37:01 2014 +0100| [d8c0c2fc72890a368effec5e9df4a0c5944eaf81] | committer: David Fuhrmann
auhal: add error message when format change failed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8c0c2fc72890a368effec5e9df4a0c5944eaf81
---
modules/audio_output/auhal.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index a206869..edcc6b2 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1072,8 +1072,11 @@ static void Stop(audio_output_t *p_aout)
if (err != noErr)
msg_Err(p_aout, "Failed to destroy Process ID [%4.4s]", (char *)&err);
- if (p_sys->b_revert)
- AudioStreamChangeFormat(p_aout, p_sys->i_stream_id, p_sys->sfmt_revert);
+ if (p_sys->b_revert) {
+ if (!AudioStreamChangeFormat(p_aout, p_sys->i_stream_id, p_sys->sfmt_revert)) {
+ msg_Err(p_aout, "failed to revert stream format in close");
+ }
+ }
if (p_sys->b_changed_mixing && p_sys->sfmt_revert.mFormatID != kAudioFormat60958AC3) {
int b_mix;
More information about the vlc-commits
mailing list