b_play = var_CreateGetBool( p_playlist, "playlist-autostart" );
/* This part is really hakish, but this playlist system isn't simple */
- /* First check if we haven't already added the item as we are
- * listening using the onelevel and the category representent
+ /* First check if we haven't already added the item as we are
+ * listening using the onelevel and the category representent
* (Because of the playlist design) */
p_child_in_category = playlist_ItemFindFromInputAndRoot(
p_playlist, p_child->i_id,
{
p_item_in_category = playlist_ItemToNode( p_playlist,
p_item_in_category, VLC_TRUE );
+ p_item_in_category->p_input->i_type = ITEM_TYPE_PLAYLIST;
}
-
- playlist_BothAddInput( p_playlist, p_child, p_item_in_category,
+
+ playlist_BothAddInput( p_playlist, p_child, p_item_in_category,
PLAYLIST_APPEND | PLAYLIST_SPREPARSE , PLAYLIST_END,
NULL, NULL, VLC_TRUE );
VLC_TRUE, p_item_in_category, NULL );
}
}
-
+
PL_UNLOCK;
}
vlc_event_detach( &p_input->event_manager, vlc_InputItemSubItemAdded,
input_item_subitem_added,
p_item );
-
+
}
/*****************************************************************************
void playlist_Clear( playlist_t * p_playlist, vlc_bool_t b_locked )
{
if( !b_locked ) PL_LOCK;
- playlist_NodeEmpty( p_playlist, p_playlist->p_root_category, VLC_TRUE );
- playlist_NodeEmpty( p_playlist, p_playlist->p_root_onelevel, VLC_TRUE );
+ playlist_NodeEmpty( p_playlist, p_playlist->p_local_category, VLC_TRUE );
+ playlist_NodeEmpty( p_playlist, p_playlist->p_local_onelevel, VLC_TRUE );
if( !b_locked ) PL_UNLOCK;
}