[vlc-devel] commit: * src/input/clock.c: Feed synchro with new ref. point after unexpected discontinuity. Needs testing, should fix ticket #691 no audio/ video in transcode after clock gap in input (Dennis van Amerongen )

git version control git at videolan.org
Mon Nov 24 15:06:37 CET 2008


vlc | branch: 0.8.6-bugfix | Dennis van Amerongen <trax at videolan.org> | Sun Nov 18 13:36:58 2007 +0000| [219f049e80e6ea100fa74e4e2ba3af8092c81d86] | committer: Jean-Paul Saman 

* src/input/clock.c: Feed synchro with new ref. point after unexpected discontinuity. Needs testing, should fix ticket #691 no audio/video in transcode after clock gap in input
(cherry picked from commit bcae3b195daf5e5a000a8d7815919603e4fd7b76)

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

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

diff --git a/src/input/clock.c b/src/input/clock.c
index d167966..4f8a0b5 100644
--- a/src/input/clock.c
+++ b/src/input/clock.c
@@ -259,6 +259,11 @@ void input_ClockSetPCR( input_thread_t *p_input,
          * stream ?). */
         msg_Warn( p_input, "clock gap, unexpected stream discontinuity" );
         input_ClockInit( p_input, cl, cl->b_master, cl->i_cr_average );
+        /* Feed synchro with a new reference point. */
+        msg_Warn( p_input, "feeding synchro with a new reference point trying to recover from clock gap" );
+        ClockNewRef( cl, i_clock,
+                         __MAX( cl->last_pts + CR_MEAN_PTS_GAP, i_mdate ) );
+        cl->i_synchro_state = SYNCHRO_OK;
     }
 
     cl->last_cr = i_clock;




More information about the vlc-devel mailing list