[vlc-devel] commit: skins2: add a --[no]-skinned-video parameter (enabled by default) ( Erwan Tulou )

git version control git at videolan.org
Tue Nov 3 22:07:43 CET 2009


vlc | branch: 1.0-bugfix | Erwan Tulou <erwan10 at videolan.org> | Tue Nov  3 21:22:08 2009 +0100| [df26bfc692143d313b5cd5825a58fa035579fdf0] | committer: Erwan Tulou 

skins2: add a --[no]-skinned-video parameter (enabled by default)

This parameter is intended to give old skins a chance to play back video even
though no video tag is provided in the theme.xml file.

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

 modules/gui/skins2/src/skin_main.cpp |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index 44a195d..f560869 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/modules/gui/skins2/src/skin_main.cpp
@@ -337,6 +337,12 @@ static int WindowOpen( vlc_object_t *p_this )
     if( pIntf == NULL )
         return VLC_EGENERIC;
 
+    if( !config_GetInt( pIntf, "skinned-video") )
+    {
+        vlc_object_release( pIntf );
+        return VLC_EGENERIC;
+    }
+
     vlc_object_release( pIntf );
 
     pWnd->handle.hwnd = VoutManager::getWindow( pIntf, pWnd );
@@ -519,6 +525,10 @@ static int onTaskBarChange( vlc_object_t *pObj, const char *pVariable,
     " 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 )
@@ -541,6 +551,8 @@ vlc_module_begin ()
 
     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 )




More information about the vlc-devel mailing list