[vlc-commits] [Git][videolan/npapi-vlc][master] Remove use of toggleTeletext
Hugo Beauzée-Luyssen
gitlab at videolan.org
Mon Mar 27 11:49:34 CEST 2017
Hugo Beauzée-Luyssen pushed to branch master at videolan / VLC Browser Plugins
Commits:
8c333506 by Hugo Beauzée-Luyssen at 2017-03-23T10:30:06+01:00
Remove use of toggleTeletext
- - - - -
2 changed files:
- activex/vlccontrol2.cpp
- npapi/npruntime/npolibvlc.cpp
Changes:
=====================================
activex/vlccontrol2.cpp
=====================================
--- a/activex/vlccontrol2.cpp
+++ b/activex/vlccontrol2.cpp
@@ -1272,7 +1272,10 @@ STDMETHODIMP VLCVideo::toggleFullscreen()
STDMETHODIMP VLCVideo::toggleTeletext()
{
- _plug->get_player().get_mp().toggleTeletext();
+ if( _plug->get_player().get_mp().teletext() == -1 )
+ _plug->get_player().get_mp().setTeletext( 100 );
+ else
+ _plug->get_player().get_mp().setTeletext( -1 );
return S_OK;
}
=====================================
npapi/npruntime/npolibvlc.cpp
=====================================
--- a/npapi/npruntime/npolibvlc.cpp
+++ b/npapi/npruntime/npolibvlc.cpp
@@ -1545,7 +1545,10 @@ LibvlcVideoNPObject::invoke(int index, const NPVariant *,
{
if( argCount == 0 )
{
- p_plugin->getMD().toggleTeletext();
+ if ( p_plugin->getMD().teletext() == -1 )
+ p_plugin->getMD().setTeletext( 100 );
+ else
+ p_plugin->getMD().setTeletext( -1 );
return INVOKERESULT_NO_ERROR;
}
return INVOKERESULT_NO_SUCH_METHOD;
View it on GitLab: https://code.videolan.org/videolan/npapi-vlc/commit/8c333506d9262186b3cfb3b652b0e5be227d808b
More information about the vlc-commits
mailing list