Commit 8e3288f9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove impossible code

Nothing calls vlc_object_kill() on the playlist.
parent 07662edf
......@@ -451,8 +451,7 @@ int playlist_AddInput( playlist_t* p_playlist, input_item_t *p_input,
bool b_locked )
{
playlist_item_t *p_item;
/* FIXME: use b_killed instead: */
if( !vlc_object_alive(p_playlist) ) return VLC_EGENERIC;
if( !pl_priv(p_playlist)->b_doing_ml )
PL_DEBUG( "adding item `%s' ( %s )", p_input->psz_name,
p_input->psz_uri );
......@@ -494,10 +493,6 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
assert( p_input );
assert( p_parent && p_parent->i_children != -1 );
/* FIXME: use b_killed instead: */
if( !vlc_object_alive(p_playlist) )
return NULL;
PL_LOCK_IF( !b_locked );
p_item = playlist_ItemNewFromInput( p_playlist, 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