[svn r886] fixed audio sync trunk
authorrenatofilho
Thu Nov 15 20:33:59 2007 +0000 (2007-11-15)
branchtrunk
changeset 88022df7edb6e37
parent 879 16c33370755e
child 881 c5a9d9583e64
[svn r886] fixed audio sync
gst-gmyth/nuvdemux/gstnuvdemux.c
     1.1 --- a/gst-gmyth/nuvdemux/gstnuvdemux.c	Tue Oct 30 14:08:04 2007 +0000
     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      }