gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c
branchtrunk
changeset 246 8d602d9e22a4
parent 209 b8a07bf0375b
child 251 9f0346db9a46
     1.1 --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Wed Dec 06 20:25:59 2006 +0000
     1.2 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Tue Jan 09 16:46:43 2007 +0000
     1.3 @@ -720,12 +720,9 @@
     1.4            goto done;
     1.5        }
     1.6  
     1.7 -      if (h.i_timecode < 0) {
     1.8 -          h.i_timecode = h.i_timecode * -1;
     1.9 -          nuv->priv->time_diff = h.i_timecode;
    1.10 +      if ((h.i_timecode < 0)) {
    1.11 +	goto done;
    1.12        }
    1.13 -      else
    1.14 -          h.i_timecode += nuv->priv->time_diff;
    1.15  
    1.16        timestamp = h.i_timecode * GST_MSECOND;
    1.17        GST_BUFFER_TIMESTAMP (buf) = timestamp;
    1.18 @@ -774,7 +771,7 @@
    1.19        break;
    1.20      }
    1.21      case 'S':
    1.22 -    {
    1.23 +   {
    1.24        switch (h.i_compression) {
    1.25          case 'V':
    1.26            GST_DEBUG_OBJECT (nuv, "sending new video segment: %d", h.i_timecode);