[vlc-commits] auhal: do not check for changed streams if selected device is 0
David Fuhrmann
git at videolan.org
Mon Feb 24 15:28:21 CET 2014
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Feb 23 19:18:36 2014 +0100| [46a5276d39edefdddee178589984a34ccb294f8a] | committer: David Fuhrmann
auhal: do not check for changed streams if selected device is 0
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46a5276d39edefdddee178589984a34ccb294f8a
---
modules/audio_output/auhal.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 3078c1a..b6958a4 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1490,6 +1490,10 @@ static OSStatus StreamsChangedListener(AudioObjectID inObjectID, UInt32 inNumbe
msg_Dbg(p_aout, "available physical formats for audio device changed");
RebuildDeviceList(p_aout);
+ /* In this case audio has not yet started. Below code will not work and is not needed here. */
+ if (p_sys->i_selected_dev == 0)
+ return 0;
+
/*
* check if changed stream id belongs to current device
*/
More information about the vlc-commits
mailing list