Commit 7bcd728f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* playlist/* When telling the playlist to play the node, don't check for...

* playlist/* When telling the playlist to play the node, don't check for i_children. The playlist might still have to process the request of the add and i_children may not be accurate yet. (this fixes a bug where 1 item playlists would not start playing).
parent 67c7c31e
...@@ -83,7 +83,7 @@ void E_(Close_GVP) ( vlc_object_t * ); ...@@ -83,7 +83,7 @@ void E_(Close_GVP) ( vlc_object_t * );
#define HANDLE_PLAY_AND_RELEASE \ #define HANDLE_PLAY_AND_RELEASE \
/* Go back and play the playlist */ \ /* Go back and play the playlist */ \
if( b_play && p_item_in_category && p_item_in_category->i_children > 0 ) \ if( b_play && p_item_in_category ) \
playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, VLC_TRUE, p_item_in_category, \ playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, VLC_TRUE, p_item_in_category, \
NULL ); \ VLC_TRUE ); \
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
...@@ -119,6 +119,12 @@ static int Demux( demux_t *p_demux ) ...@@ -119,6 +119,12 @@ static int Demux( demux_t *p_demux )
free( psz_line ); free( psz_line );
continue; continue;
} }
if( !strcasecmp( psz_key, "numberofentries" ) )
{
msg_Dbg( p_demux, "pls should have %d entries", atoi(psz_value) );
free( psz_line);
continue;
}
/* find the number part of of file1, title1 or length1 etc */ /* find the number part of of file1, title1 or length1 etc */
i_key_length = strlen( psz_key ); i_key_length = strlen( psz_key );
if( i_key_length >= 4 ) /* Ref1 type case */ if( i_key_length >= 4 ) /* Ref1 type case */
......
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