Commit 4e03ca06 authored by Clément Stenac's avatar Clément Stenac

Reset playlist status to STOPPED after stop

parent 266fb28c
...@@ -61,6 +61,7 @@ HEADERS_include = \ ...@@ -61,6 +61,7 @@ HEADERS_include = \
../include/variables.h \ ../include/variables.h \
../include/video_output.h \ ../include/video_output.h \
../include/vlc_access.h \ ../include/vlc_access.h \
../include/vlc_arrays.h \
../include/vlc_acl.h \ ../include/vlc_acl.h \
../include/vlc_bits.h \ ../include/vlc_bits.h \
../include/vlc_block.h \ ../include/vlc_block.h \
......
...@@ -225,7 +225,7 @@ void playlist_MainLoop( playlist_t *p_playlist ) ...@@ -225,7 +225,7 @@ void playlist_MainLoop( playlist_t *p_playlist )
{ {
playlist_item_t *p_item = NULL; playlist_item_t *p_item = NULL;
vlc_bool_t b_playexit = var_GetBool( p_playlist, "play-and-exit" ); vlc_bool_t b_playexit = var_GetBool( p_playlist, "play-and-exit" );
PL_LOCK PL_LOCK;
/* First, check if we have something to do */ /* First, check if we have something to do */
/* FIXME : this can be called several times */ /* FIXME : this can be called several times */
...@@ -348,6 +348,7 @@ void playlist_MainLoop( playlist_t *p_playlist ) ...@@ -348,6 +348,7 @@ void playlist_MainLoop( playlist_t *p_playlist )
} }
else else
{ {
p_playlist->status.i_status = PLAYLIST_STOPPED;
if( p_playlist->status.p_item && if( p_playlist->status.p_item &&
p_playlist->status.p_item->i_flags & PLAYLIST_REMOVE_FLAG ) p_playlist->status.p_item->i_flags & PLAYLIST_REMOVE_FLAG )
{ {
......
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