]> git.sesse.net Git - vlc/commitdiff
Fixed EOF handling while buffering in pause state.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 14 Sep 2009 19:10:45 +0000 (21:10 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 14 Sep 2009 21:26:46 +0000 (23:26 +0200)
It avoids to quit the pause state.

src/input/input.c

index 740b6079491116f0ee1eed63e0910c3d638962f9..06cf03bc73d56032d4a4c02f76e58938458c3434 100644 (file)
@@ -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 )