Commit c75d563f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

input: Change the state to END_S when playback is really finished.

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