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

Rafaël Carré funman at videolan.org
Mon Apr 22 21:42:02 CEST 2013


Le 22/04/2013 11:53, Jean-Baptiste Kempf a écrit :
> 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 !VLC_WINSTORE_APP

What you wrote is equivalent to #if 0

>      if( IDirectSound_SetCooperativeLevel( p_aout->sys->p_dsobject,
>                                            GetDesktopWindow(),
>                                            DSSCL_EXCLUSIVE) )
>      {
>          msg_Warn( p_aout, "cannot set direct sound cooperative level" );
>      }
> +#endif



More information about the vlc-devel mailing list