mmdevice: only use active devices

Multimedia / VLC - Jean-Baptiste Kempf [videolan.org] - 30 June 2016 06:40 UTC

This fixes a crash (a Windows Exception) when VLC is run just after windows start and when an unactive device is activated.

This issue is very hard to reproduce, here is the backtrace:

#0 0x000007feb6ef2f2a in ntdll!ZwDelayExecution () from C:\Windows\SYSTEM32\ntdll.dll #1 0x000007feb42111f2 in SleepEx () from C:\Windows\system32\KernelBase.dll #2 0x000007feb5f989b0 in SetStateVersion () from C:\Windows\system32\kernel32.dll #3 0x000007feb4290ba7 in UnhandledExceptionFilter () from C:\Windows\system32\KernelBase.dll #4 0x000007feb6fe9183 in ntdll!SbExecuteProcedure () from C:\Windows\SYSTEM32\ntdll.dll #5 0x000007feb6f14fea in ntdll!__C_specific_handler () from C:\Windows\SYSTEM32\ntdll.dll #6 0x000007feb6f1464d in ntdll!RtlLookupFunctionEntry () from C:\Windows\SYSTEM32\ntdll.dll #7 0x000007feb6f1567c in ntdll!DbgPrint () from C:\Windows\SYSTEM32\ntdll.dll #8 0x000007feb6f15b28 in ntdll!RtlRaiseException () from C:\Windows\SYSTEM32\ntdll.dll #9 0x000007feb42289cc in RaiseException () from C:\Windows\system32\KernelBase.dll #10 0x000007feb157278b in MMDevAPI!DllCanUnloadNow () from C:\Windows\System32\MMDevAPI.dll #11 0x000007feb1574b24 in MMDevAPI!DllGetClassObject () from C:\Windows\System32\MMDevAPI.dll #12 0x000007fea57e1c87 in DllGetClassObject () from C:\Windows\SYSTEM32\AudioSes.dll #13 0x000007feb1575a15 in MMDevAPI!DllGetClassObject () from C:\Windows\System32\MMDevAPI.dll #14 0x0000000054a71438 in ActivateDevice (opaque=, iid=, actparms=, pv=) at ../../extras/package/win32/../../../modules/audio_output/mmdevice.c:1018

589cd9f mmdevice: only use active devices
modules/audio_output/mmdevice.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

Upstream: git.videolan.org


  • Share