[vlc-devel] commit: input: Change the state to END_S when playback is really finished. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Jun 14 15:17:00 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jun 14 14:51:44 2008 +0200| [c75d563f2fb190ba3cbd8ff7137c01cf05f0d84d]
input: Change the state to END_S when playback is really finished.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c75d563f2fb190ba3cbd8ff7137c01cf05f0d84d
---
src/input/input.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 35832c4..d23a746 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -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;
}
More information about the vlc-devel
mailing list