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

git version control git at videolan.org
Fri Oct 23 23:14:54 CEST 2009


vlc | branch: 1.0-bugfix | Laurent Aimar <fenrir at videolan.org> | Mon Sep 14 21:10:45 2009 +0200| [05c0a316acb840ec7375f158bc51c252aff61b34] | committer: Laurent Aimar 

Fixed EOF handling while buffering in pause state.

It avoids to quit the pause state.
(cherry picked from commit f6a57b9b1eb87f023983c485a779c97ee55c92b7)

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

 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 528a411..81759b1 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -763,7 +763,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 );
 
         if( !b_paused )
         {




More information about the vlc-devel mailing list