npapi-vlc | branch: master | Cheng Sun <[email protected]> | Tue Jan  3 
21:07:31 2012 +0000| [4deffed0156c347320ef03fc89a7a42b38a4ab40] | committer: 
Jean-Baptiste Kempf

Add bgcolor attribute to embedded plugin

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 npapi/vlcplugin_base.cpp |    5 +++++
 npapi/vlcplugin_base.h   |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index b248f2f..d7ec060 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -354,6 +354,7 @@ VlcPluginBase::VlcPluginBase( NPP instance, NPuint16_t mode 
) :
     b_toolbar(1),
     psz_text(NULL),
     psz_target(NULL),
+    psz_bgcolor("#000000"),
     playlist_index(-1),
     libvlc_instance(NULL),
     libvlc_media_list(NULL),
@@ -504,6 +505,10 @@ NPError VlcPluginBase::init(int argc, char* const argn[], 
char* const argv[])
         {
             b_toolbar = boolValue(argv[i]);
         }
+        else if( !strcmp( argn[i], "bgcolor" ) )
+        {
+            psz_bgcolor = argv[i];
+        }
     }
 
     libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv);
diff --git a/npapi/vlcplugin_base.h b/npapi/vlcplugin_base.h
index 2832001..696426b 100644
--- a/npapi/vlcplugin_base.h
+++ b/npapi/vlcplugin_base.h
@@ -316,10 +316,11 @@ protected:
 
     /* browser reference */
     NPP     p_browser;
-    char*   psz_baseURL;
+    char    *psz_baseURL;
 
     /* display settings */
     NPWindow  npwindow;
+    char    *psz_bgcolor;
 
     static void eventAsync(void *);
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to