Commit 8b7dc091 authored by Gildas Bazin's avatar Gildas Bazin

* modules/audio_output/waveout.c: backport of 13381.

parent 0bf6a95d
...@@ -296,8 +296,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -296,8 +296,8 @@ static int Open( vlc_object_t *p_this )
/* Check for hardware volume support */ /* Check for hardware volume support */
if( waveOutGetDevCaps( (UINT_PTR)p_aout->output.p_sys->h_waveout, if( waveOutGetDevCaps( (UINT_PTR)p_aout->output.p_sys->h_waveout,
&wocaps, sizeof(wocaps) == MMSYSERR_NOERROR ) && &wocaps, sizeof(wocaps) ) == MMSYSERR_NOERROR &&
wocaps.dwSupport == WAVECAPS_VOLUME ) wocaps.dwSupport & WAVECAPS_VOLUME )
{ {
DWORD i_dummy; DWORD i_dummy;
if( waveOutGetVolume( p_aout->output.p_sys->h_waveout, &i_dummy ) if( waveOutGetVolume( p_aout->output.p_sys->h_waveout, &i_dummy )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment