X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faudio_output%2Fdirectx.c;h=3da3452b766cea2186d762571d2c3dc1d0cc9069;hb=d892a6b55104ed1a0fc9fc3047c052d0ba373759;hp=b827ed66b3783fe6245a17658b1f851bb529de60;hpb=21e2557b1cd45601d8cbcc2a6b3b6c96847dd30b;p=vlc diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c index b827ed66b3..3da3452b76 100644 --- a/modules/audio_output/directx.c +++ b/modules/audio_output/directx.c @@ -612,12 +612,14 @@ static int InitDirectSound( audio_output_t *p_aout ) * sound without any video, and so what window handle should we use ??? * The hack for now is to use the Desktop window handle - it seems to be * working */ +#ifndef VLC_WINSTORE_APP if( IDirectSound_SetCooperativeLevel( p_aout->sys->p_dsobject, GetDesktopWindow(), DSSCL_EXCLUSIVE) ) { msg_Warn( p_aout, "cannot set direct sound cooperative level" ); } +#endif return VLC_SUCCESS; error: