]> git.sesse.net Git - vlc/commitdiff
DirectX: don't set the cooperative level on WinRT
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 22 Apr 2013 09:48:40 +0000 (11:48 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 22 Apr 2013 09:48:40 +0000 (11:48 +0200)
WinRT apps are not cooperative :)

modules/audio_output/directx.c

index b827ed66b3783fe6245a17658b1f851bb529de60..3da3452b766cea2186d762571d2c3dc1d0cc9069 100644 (file)
@@ -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: