Commit c05f65e9 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

qt4: Use playlist_CurrentInput().

Should fix a race condition about freed input usage.
parent 560016e3
...@@ -590,8 +590,9 @@ void MainInputManager::customEvent( QEvent *event ) ...@@ -590,8 +590,9 @@ void MainInputManager::customEvent( QEvent *event )
{ {
/* we are working as a dialogs provider */ /* we are working as a dialogs provider */
playlist_t *p_playlist = pl_Yield( p_intf ); playlist_t *p_playlist = pl_Yield( p_intf );
p_input = p_playlist->p_input; p_input = playlist_CurrentInput( p_playlist );
emit inputChanged( p_input ); emit inputChanged( p_input );
vlc_object_release( p_input );
} }
} }
......
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