Revision: 886
http://gmyth.svn.sourceforge.net/gmyth/?rev=886&view=rev
Author: renatofilho
Date: 2007-11-15 12:33:59 -0800 (Thu, 15 Nov 2007)
Log Message:
-----------
fixed audio sync
Modified Paths:
--------------
trunk/gst-gmyth/nuvdemux/gstnuvdemux.c
Modified: trunk/gst-gmyth/nuvdemux/gstnuvdemux.c
===================================================================
--- trunk/gst-gmyth/nuvdemux/gstnuvdemux.c 2007-10-30 14:08:04 UTC (rev 885)
+++ trunk/gst-gmyth/nuvdemux/gstnuvdemux.c 2007-11-15 20:33:59 UTC (rev 886)
@@ -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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|