Commit 9680e16f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fixes a problem where playlist_Play was playing items that were no longer in...

* Fixes a problem where playlist_Play was playing items that were no longer in the playlist. (Play item, playlist_Stop, remove item, add new items (enqueue), playlist_Play, and you would get the old item). This fixes it, but i think it might be a problem that actually resides deeper in the playlist core.
parent 19f7be58
...@@ -337,6 +337,7 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args ) ...@@ -337,6 +337,7 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
case PLAYLIST_STOP: case PLAYLIST_STOP:
p_playlist->status.i_status = PLAYLIST_STOPPED; p_playlist->status.i_status = PLAYLIST_STOPPED;
p_playlist->request.b_request = VLC_TRUE; p_playlist->request.b_request = VLC_TRUE;
p_playlist->request.p_item = NULL;
break; break;
case PLAYLIST_ITEMPLAY: case PLAYLIST_ITEMPLAY:
...@@ -404,7 +405,7 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args ) ...@@ -404,7 +405,7 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
p_playlist->request.b_request = VLC_TRUE; p_playlist->request.b_request = VLC_TRUE;
p_playlist->request.i_view = p_playlist->status.i_view; p_playlist->request.i_view = p_playlist->status.i_view;
p_playlist->request.p_node = p_playlist->status.p_node; p_playlist->request.p_node = p_playlist->status.p_node;
p_playlist->request.p_item = p_playlist->status.p_item; p_playlist->request.p_item = p_playlist->status.p_item = NULL;
p_playlist->request.i_skip = 0; p_playlist->request.i_skip = 0;
p_playlist->request.i_goto = -1; p_playlist->request.i_goto = -1;
break; break;
......
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