X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=projects%2Fmozilla%2Fvlcplugin.cpp;h=3a49e8e4c7f6e04aa98465ccf09b58ff874ad82f;hb=50b952d9421372f1a1163f2accc38d4719e57afd;hp=0ed4a19a9e6483a1e2b13d9d1c0ee978e668e194;hpb=8d26f8c30bf2139ffe9c0a2bfd0db68fb640fd6a;p=vlc diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index 0ed4a19a9e..3a49e8e4c7 100644 --- a/projects/mozilla/vlcplugin.cpp +++ b/projects/mozilla/vlcplugin.cpp @@ -45,6 +45,7 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) : b_stream(0), b_autoplay(1), b_toolbar(0), + psz_text(NULL), psz_target(NULL), playlist_index(-1), libvlc_instance(NULL), @@ -144,6 +145,10 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) { psz_target = argv[i]; } + else if( !strcmp( argn[i], "text" ) ) + { + psz_text = strdup( argv[i] ); + } else if( !strcmp( argn[i], "autoplay") || !strcmp( argn[i], "autostart") ) { @@ -266,6 +271,7 @@ VlcPlugin::~VlcPlugin() { free(psz_baseURL); free(psz_target); + free(psz_text); if( libvlc_media_player ) libvlc_media_player_release( libvlc_media_player ); if( libvlc_media_list )