[vlc-devel] commit: Fixed EOF handling while buffering in pause state. (Laurent Aimar )

git version control git at videolan.org
Mon Sep 14 23:27:58 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Sep 14 21:10:45 2009 +0200| [f6a57b9b1eb87f023983c485a779c97ee55c92b7] | committer: Laurent Aimar 

Fixed EOF handling while buffering in pause state.

It avoids to quit the pause state.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6a57b9b1eb87f023983c485a779c97ee55c92b7
---

 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 740b607..06cf03b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -777,7 +777,7 @@ static void MainLoop( input_thread_t *p_input )
          * is paused -> this may cause problem with some of them
          * The same problem can be seen when seeking while paused */
         b_paused = p_input->p->i_state == PAUSE_S &&
-                   !es_out_GetBuffering( p_input->p->p_es_out );
+                   ( !es_out_GetBuffering( p_input->p->p_es_out ) || p_input->p->input.b_eof );
 
         b_demux_polled = true;
         if( !b_paused )




More information about the vlc-devel mailing list