[vlc-commits] DirectX: don't set the cooperative level on WinRT

Jean-Baptiste Kempf git at videolan.org
Mon Apr 22 11:53:29 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 22 11:48:40 2013 +0200| [1c757f0a4ffcc4d87f950441bcdc2ef6f1240c20] | committer: Jean-Baptiste Kempf

DirectX: don't set the cooperative level on WinRT

WinRT apps are not cooperative :)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c757f0a4ffcc4d87f950441bcdc2ef6f1240c20
---

 modules/audio_output/directx.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index b827ed6..3da3452 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:



More information about the vlc-commits mailing list