// Callbacks for vout requests
static int WindowOpen( vlc_object_t *p_this )
{
- int i_ret;
vout_window_t *pWnd = (vout_window_t *)p_this;
vlc_mutex_lock( &skin_load.mutex );
if( pIntf == NULL )
return VLC_EGENERIC;
+ if( !config_GetInt( pIntf, "skinned-video") )
+ {
+ vlc_object_release( pIntf );
+ return VLC_EGENERIC;
+ }
+
vlc_mutex_lock( &serializer );
pWnd->handle.hwnd = VoutManager::getWindow( pIntf, pWnd );
" correctly.")
#define SKINS2_PLAYLIST N_("Use a skinned playlist")
#define SKINS2_PLAYLIST_LONG N_("Use a skinned playlist")
+#define SKINS2_VIDEO N_("Display video in a skinned window if any")
+#define SKINS2_VIDEO_LONG N_( \
+ "When set to 'no', this parameter is intended to give old skins a chance" \
+ " to play back video even though no video tag is implemented")
vlc_module_begin ()
set_category( CAT_INTERFACE )
add_bool( "skinned-playlist", true, NULL, SKINS2_PLAYLIST,
SKINS2_PLAYLIST_LONG, false );
+ add_bool( "skinned-video", true, NULL, SKINS2_VIDEO,
+ SKINS2_VIDEO_LONG, false );
set_shortname( N_("Skins"))
set_description( N_("Skinnable Interface") )
set_capability( "interface", 30 )