Commit 8c333506 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Remove use of toggleTeletext

parent c5785916
......@@ -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;
}
......
......@@ -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;
......
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