Commit 75d4dcbd authored by Clément Stenac's avatar Clément Stenac

* Fix skip in initial status

* Don't waste ids
* Fix a bug in services discoveries
parent 97a70d1b
......@@ -76,8 +76,6 @@ static void vlc_input_item_Destroy ( gc_object_t *p_this )
playlist_t *p_playlist = (playlist_t *)vlc_object_find( p_obj,
VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
fprintf( stderr, "Destroying item %s\n", p_input->psz_name );
vlc_input_item_Clean( p_input );
......
......@@ -168,6 +168,9 @@ int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args )
p_playlist->request.p_node = p_playlist->status.p_node;
p_playlist->request.p_item = p_playlist->status.p_item;
p_playlist->request.i_skip = (int) va_arg( args, int );
/* if already running, keep running */
if( p_playlist->status.i_status != PLAYLIST_STOPPED )
p_playlist->request.i_status = p_playlist->status.i_status;
p_playlist->request.b_request = VLC_TRUE;
break;
......
......@@ -237,7 +237,6 @@ int playlist_PlaylistAddInput( playlist_t* p_playlist, input_item_t *p_input,
int i_mode, int i_pos )
{
playlist_item_t *p_item_cat, *p_item_one;
p_input->i_id = ++p_playlist->i_last_input_id;
msg_Dbg( p_playlist, "adding playlist item `%s' ( %s )",
p_input->psz_name, p_input->psz_uri );
......
......@@ -300,6 +300,8 @@ void playlist_NodesCreateForSD( playlist_t *p_playlist, char *psz_name,
p_playlist->p_root_onelevel );
(*pp_node_one)->i_flags |= PLAYLIST_RO_FLAG;
(*pp_node_one)->i_flags |= PLAYLIST_SKIP_FLAG;
(*pp_node_one)->p_input->i_id = (*pp_node_cat)->p_input->i_id;
}
......
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