1.1 --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Wed Aug 22 17:57:16 2007 +0100
1.2 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Thu Nov 15 20:33:59 2007 +0000
1.3 @@ -882,13 +882,12 @@
1.4 goto done;
1.5 }
1.6
1.7 - if ((h.i_timecode < 0)) {
1.8 - h.i_timecode = 0;
1.9 - // goto done;
1.10 + if ((h.i_timecode > 0) && (h.i_type == 'V')) {
1.11 + g_debug ("TS: %ld", h.i_timecode);
1.12 + timestamp = h.i_timecode * GST_MSECOND;
1.13 + GST_BUFFER_TIMESTAMP(buf) = timestamp;
1.14 }
1.15
1.16 - timestamp = h.i_timecode * GST_MSECOND;
1.17 - GST_BUFFER_TIMESTAMP(buf) = timestamp;
1.18 } else {
1.19 goto done;
1.20 }