Browse Source

auhal: do not check for changed streams if selected device is 0

pull/18/head
David Fuhrmann 13 years ago
parent
commit
46a5276d39
  1. 4
      modules/audio_output/auhal.c

4
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
*/

Loading…
Cancel
Save