Commit 807116e6 authored by Rafaël Carré's avatar Rafaël Carré

Don't yield the playlist object when it's dead already

parent 6aea9319
...@@ -598,7 +598,10 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args ) ...@@ -598,7 +598,10 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
static void NotifyPlaylist( input_thread_t *p_input ) static void NotifyPlaylist( input_thread_t *p_input )
{ {
playlist_t *p_playlist = pl_Yield( p_input ); playlist_t *p_playlist = pl_Get( p_input );
if( p_playlist->b_die )
return;
vlc_object_yield( p_playlist );
var_SetInteger( p_playlist, "item-change", var_SetInteger( p_playlist, "item-change",
p_input->p->input.p_item->i_id ); p_input->p->input.p_item->i_id );
pl_Release( p_input ); pl_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