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

src/playlist/item.c: Don't yield the playlist.

parent a4507637
...@@ -117,7 +117,6 @@ playlist_item_t *__playlist_ItemNewFromInput( vlc_object_t *p_obj, ...@@ -117,7 +117,6 @@ playlist_item_t *__playlist_ItemNewFromInput( vlc_object_t *p_obj,
{ {
DECMALLOC_NULL( p_item, playlist_item_t ); DECMALLOC_NULL( p_item, playlist_item_t );
playlist_t *p_playlist = p_obj->p_libvlc->p_playlist; playlist_t *p_playlist = p_obj->p_libvlc->p_playlist;
vlc_object_yield( p_playlist );
p_item->p_input = p_input; p_item->p_input = p_input;
vlc_gc_incref( p_item->p_input ); vlc_gc_incref( p_item->p_input );
...@@ -144,7 +143,6 @@ int playlist_ItemDelete( playlist_item_t *p_item ) ...@@ -144,7 +143,6 @@ int playlist_ItemDelete( playlist_item_t *p_item )
{ {
uninstall_input_item_observer( p_item->p_playlist, p_item->p_input ); uninstall_input_item_observer( p_item->p_playlist, p_item->p_input );
vlc_object_release( p_item->p_playlist );
vlc_gc_decref( p_item->p_input ); vlc_gc_decref( p_item->p_input );
free( p_item ); free( p_item );
return VLC_SUCCESS; return VLC_SUCCESS;
......
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