Commit 11a1940b authored by Clément Stenac's avatar Clément Stenac

Add extra debug to chase #934

parent 25346010
...@@ -77,11 +77,12 @@ void InputManager::delInput() ...@@ -77,11 +77,12 @@ void InputManager::delInput()
void InputManager::update() void InputManager::update()
{ {
/// \todo Emit the signals only if it changed /// \todo Emit the signals only if it changed
if( !p_input ) return; if( !p_input ) return;
if( p_input->b_dead || p_input->b_die ) if( p_input->b_dead || p_input->b_die )
{ {
emit positionUpdated( 0.0, 0, 0 ); emit positionUpdated( 0.0, 0, 0 );
msg_Dbg( p_intf, "*********** NAV 0");
emit navigationChanged( 0 ); emit navigationChanged( 0 );
emit statusChanged( 0 ); // 0 = STOPPED, 1 = PLAY, 2 = PAUSE emit statusChanged( 0 ); // 0 = STOPPED, 1 = PLAY, 2 = PAUSE
} }
...@@ -100,21 +101,26 @@ void InputManager::update() ...@@ -100,21 +101,26 @@ void InputManager::update()
emit positionUpdated( f_pos, i_time, i_length ); emit positionUpdated( f_pos, i_time, i_length );
/* Update disc status */ /* Update disc status */
vlc_value_t val; vlc_value_t val; val.i_int = 0;
var_Change( p_input, "title", VLC_VAR_CHOICESCOUNT, &val, NULL ); var_Change( p_input, "title", VLC_VAR_CHOICESCOUNT, &val, NULL );
if( val.i_int > 0 ) if( val.i_int > 0 )
{ {
vlc_value_t val; val.i_int = 0;
var_Change( p_input, "chapter", VLC_VAR_CHOICESCOUNT, &val, NULL ); var_Change( p_input, "chapter", VLC_VAR_CHOICESCOUNT, &val, NULL );
if( val.i_int > 0 ) if( val.i_int > 0 )
{ {
msg_Dbg( p_intf, "******* CHAPTER");
emit navigationChanged( 1 ); // 1 = chapter, 2 = title, 0 = NO emit navigationChanged( 1 ); // 1 = chapter, 2 = title, 0 = NO
} }
else else
{
msg_Dbg( p_intf, "******* TITLE");
emit navigationChanged( 2 ); emit navigationChanged( 2 );
}
} }
else else
{ {
msg_Dbg( p_intf, "******** NONE" );
emit navigationChanged( 0 ); emit navigationChanged( 0 );
} }
......
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