Commit 0b0379db authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix displaying of teletext buttons.

parent fb2b7fc5
...@@ -684,6 +684,7 @@ void ControlsWidget::toggleTeletext() ...@@ -684,6 +684,7 @@ void ControlsWidget::toggleTeletext()
b_telexEnabled = true; b_telexEnabled = true;
} }
} }
void ControlsWidget::enableTeletext( bool b_enable ) void ControlsWidget::enableTeletext( bool b_enable )
{ {
telexFrame->setVisible( b_enable ); telexFrame->setVisible( b_enable );
......
...@@ -443,17 +443,17 @@ void InputManager::telexGotoPage( int page ) ...@@ -443,17 +443,17 @@ void InputManager::telexGotoPage( int page )
void InputManager::telexToggle( bool b_enabled ) void InputManager::telexToggle( bool b_enabled )
{ {
int i_page = 100;
if( hasInput() ) if( hasInput() )
{ {
const int i_teletext_es = var_GetInteger( p_input, "teletext-es" ); const int i_teletext_es = var_GetInteger( p_input, "teletext-es" );
const int i_spu_es = var_GetInteger( p_input, "spu-es" ); const int i_spu_es = var_GetInteger( p_input, "spu-es" );
b_enabled = i_teletext_es >= 0; b_enabled = (i_teletext_es >= 0);
if( b_enabled && i_teletext_es == i_spu_es ) emit teletextEnabled( b_enabled );
if( b_enabled && (i_teletext_es == i_spu_es) )
{ {
vlc_object_t *p_vbi; vlc_object_t *p_vbi;
int i_page = 100;
p_vbi = (vlc_object_t *) vlc_object_find_name( p_input, p_vbi = (vlc_object_t *) vlc_object_find_name( p_input,
"zvbi", FIND_ANYWHERE ); "zvbi", FIND_ANYWHERE );
if( p_vbi ) if( p_vbi )
...@@ -465,7 +465,7 @@ void InputManager::telexToggle( bool b_enabled ) ...@@ -465,7 +465,7 @@ void InputManager::telexToggle( bool b_enabled )
} }
} }
} }
emit teletextEnabled( b_enabled ); else emit teletextEnabled( b_enabled );
} }
void InputManager::telexToggleButtons() void InputManager::telexToggleButtons()
......
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