[vlc-devel] commit: Improved (a little) reactivity on seek. (Laurent Aimar )

git version control git at videolan.org
Sun Sep 28 13:35:58 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Sep 25 20:06:47 2008 +0200| [2a41f846deae31635f3ea8a0d9fefc724dde8207] | committer: Laurent Aimar 

Improved (a little) reactivity on seek.

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

 src/input/input.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 5019dd4..d0c5dfa 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -768,6 +768,17 @@ static void MainLoop( input_thread_t *p_input )
                 MainLoopStatistic( p_input );
                 i_statistic_update = i_current + INT64_C(1000000);
             }
+
+            /* Check if i_wakeup is still valid */
+            if( i_wakeup != 0 )
+            {
+                mtime_t i_new_wakeup = input_EsOutGetWakeup( p_input->p->p_es_out );
+                if( !i_new_wakeup )
+                {
+                    msg_Err( p_input, "RESET" );
+                    i_wakeup = 0;
+                }
+            }
         } while( i_current < i_wakeup );
     }
 




More information about the vlc-devel mailing list