- /* Create our playlist node */
- p_sys->p_playlist = (playlist_t *)vlc_object_find( p_sd,
- VLC_OBJECT_PLAYLIST,
- FIND_ANYWHERE );
- if( !p_sys->p_playlist )
- {
- msg_Warn( p_sd, "unable to find playlist, cancelling");
- goto error;
- }
-
- p_sys->p_node_cat = playlist_NodeCreate( p_sys->p_playlist, _("Bonjour"),
- p_sys->p_playlist->p_root_category );
- p_sys->p_node_one = playlist_NodeCreate( p_sys->p_playlist, _("Bonjour"),
- p_sys->p_playlist->p_root_onelevel );
- p_sys->p_node_one->p_input->i_id = p_sys->p_node_cat->p_input->i_id;
-
- p_sys->p_node_one->i_flags |= PLAYLIST_RO_FLAG;
- p_sys->p_node_cat->i_flags |= PLAYLIST_RO_FLAG;
- p_sys->p_node_one->i_flags |= PLAYLIST_SKIP_FLAG;
- p_sys->p_node_cat->i_flags |= PLAYLIST_SKIP_FLAG;