[vlc-commits] Add bgcolor attribute to embedded plugin
Cheng Sun
git at videolan.org
Thu Jan 5 03:03:06 CET 2012
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | 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 <jb at videolan.org>
> 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 *);
More information about the vlc-commits
mailing list