Commit 64ab7fa0 authored by Rafaël Carré's avatar Rafaël Carré

playlist: a node item can have an input associated (example: cdda)

parent a83a3579
...@@ -90,7 +90,7 @@ playlist_item_t * playlist_ItemGetByInputId( playlist_t *p_playlist, ...@@ -90,7 +90,7 @@ playlist_item_t * playlist_ItemGetByInputId( playlist_t *p_playlist,
assert( p_root != NULL ); assert( p_root != NULL );
for( i = 0 ; i< p_root->i_children ; i++ ) 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 ) p_root->pp_children[i]->p_input->i_id == i_input_id )
{ {
return p_root->pp_children[i]; return p_root->pp_children[i];
......
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