# HG changeset patch # User renatofilho # Date 1195158839 0 # Node ID 22df7edb6e37a9bbe15a79dc221767a237e53f90 # Parent 16c33370755eb85a14b6b30f68f2aedaa3c117fa [svn r886] fixed audio sync diff -r 16c33370755e -r 22df7edb6e37 gst-gmyth/nuvdemux/gstnuvdemux.c --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Tue Oct 30 14:08:04 2007 +0000 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Thu Nov 15 20:33:59 2007 +0000 @@ -882,13 +882,12 @@ goto done; } - if ((h.i_timecode < 0)) { - h.i_timecode = 0; - // goto done; + if ((h.i_timecode > 0) && (h.i_type == 'V')) { + g_debug ("TS: %ld", h.i_timecode); + timestamp = h.i_timecode * GST_MSECOND; + GST_BUFFER_TIMESTAMP(buf) = timestamp; } - timestamp = h.i_timecode * GST_MSECOND; - GST_BUFFER_TIMESTAMP(buf) = timestamp; } else { goto done; }