Commit 4deffed0 authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

Add bgcolor attribute to embedded plugin

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 629e4ee8
......@@ -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);
......
......@@ -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 *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment