playlist: a node item can have an input associated (example: cdda)
authorRafaël Carré <funman@videolan.org>
Wed, 10 Oct 2007 15:00:01 +0000 (15:00 +0000)
committerRafaël Carré <funman@videolan.org>
Wed, 10 Oct 2007 15:00:01 +0000 (15:00 +0000)
src/playlist/search.c

index 4d60865..ae14143 100644 (file)
@@ -90,7 +90,7 @@ playlist_item_t * playlist_ItemGetByInputId( playlist_t *p_playlist,
     assert( p_root != NULL );
     for( i = 0 ; i< p_root->i_children ; i++ )
     {
-        if( p_root->pp_children[i]->i_children == -1 &&
+        if( p_root->pp_children[i]->p_input &&
             p_root->pp_children[i]->p_input->i_id == i_input_id )
         {
             return p_root->pp_children[i];