]> git.sesse.net Git - vlc/commitdiff
Restore playlist behaviour
authorClément Stenac <zorglub@videolan.org>
Mon, 20 Jun 2005 18:52:46 +0000 (18:52 +0000)
committerClément Stenac <zorglub@videolan.org>
Mon, 20 Jun 2005 18:52:46 +0000 (18:52 +0000)
src/playlist/playlist.c

index 3cf0539d73230579cd133e140f797ca2a259a9c6..10bdae5cbc46923568069c8efaf7ac9f38840c79 100644 (file)
@@ -332,7 +332,8 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
         i_view = (int)va_arg( args,int );
         p_node = (playlist_item_t *)va_arg( args, playlist_item_t * );
         p_item = (playlist_item_t *)va_arg( args, playlist_item_t * );
-        if ( p_node == NULL || p_item == NULL || p_item->input.psz_uri == NULL )
+        if ( p_node == NULL || (p_item != NULL && p_item->input.psz_uri
+                                                         == NULL ))
         {
             p_playlist->status.i_status = PLAYLIST_STOPPED;
             p_playlist->request.b_request = VLC_TRUE;