]> git.sesse.net Git - vlc/commitdiff
input: Change the state to END_S when playback is really finished.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 14 Jun 2008 12:51:44 +0000 (14:51 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 14 Jun 2008 13:01:32 +0000 (15:01 +0200)
src/input/input.c

index 35832c4c4961d6521fa4134b49577fc74096d3b4..d23a746d3d550db315e4f3172b3b3315c641ece1 100644 (file)
@@ -533,6 +533,7 @@ static int Run( input_thread_t *p_input )
 
         /* We have finished */
         p_input->b_eof = true;
+        input_ChangeState( p_input, END_S );
         playlist_Signal( libvlc_priv (p_input->p_libvlc)->p_playlist );
     }
 
@@ -644,7 +645,6 @@ static void MainLoop( input_thread_t *p_input )
                 {
                     /* End of file - we do not set b_die because only the
                      * playlist is allowed to do so. */
-                    input_ChangeState( p_input, END_S );
                     msg_Dbg( p_input, "EOF reached" );
                     p_input->p->input.b_eof = true;
                 }