Commit 969e7a01 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: release input sooner

parent fbae0440
...@@ -114,6 +114,9 @@ void InputManager::delInput() ...@@ -114,6 +114,9 @@ void InputManager::delInput()
timeA = 0; timeA = 0;
timeB = 0; timeB = 0;
vlc_object_release( p_input );
p_input = NULL;
emit positionUpdated( -1.0, 0 ,0 ); emit positionUpdated( -1.0, 0 ,0 );
emit rateChanged( INPUT_RATE_DEFAULT ); /* TODO: Do we want this ? */ emit rateChanged( INPUT_RATE_DEFAULT ); /* TODO: Do we want this ? */
emit nameChanged( "" ); emit nameChanged( "" );
...@@ -121,18 +124,14 @@ void InputManager::delInput() ...@@ -121,18 +124,14 @@ void InputManager::delInput()
emit titleChanged( 0 ); emit titleChanged( 0 );
emit statusChanged( END_S ); emit statusChanged( END_S );
/* Reset InfoPanels but stats */
emit artChanged( NULL );
emit infoChanged( NULL );
emit metaChanged( NULL );
emit teletextPossible( false ); emit teletextPossible( false );
emit voutChanged( false );
emit AtoBchanged( false, false ); emit AtoBchanged( false, false );
vlc_object_release( p_input ); /* FIXME: Can't we release sooner ? */ emit voutChanged( false );
p_input = NULL; /* Reset all InfoPanels but stats */
emit artChanged( NULL );
emit infoChanged( NULL );
emit metaChanged( NULL );
} }
/* Add the callbacks on Input. Self explanatory */ /* Add the callbacks on Input. Self explanatory */
......
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