]> git.sesse.net Git - vlc/commitdiff
Reset playlist status to STOPPED after stop
authorClément Stenac <zorglub@videolan.org>
Thu, 19 Oct 2006 21:30:39 +0000 (21:30 +0000)
committerClément Stenac <zorglub@videolan.org>
Thu, 19 Oct 2006 21:30:39 +0000 (21:30 +0000)
src/Makefile.am
src/playlist/engine.c

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