Add DURATION support. It still doesn't work, see #119036 for why and on how to fix it
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 4 Aug 2003 22:43:44 +0000 (22:43 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 4 Aug 2003 22:43:44 +0000 (22:43 +0000)
Original commit message from CVS:
Add DURATION support. It still doesn't work, see #119036 for why and on how to fix it

gst/mpeg1videoparse/gstmp1videoparse.c

index 3a17dbe..4ccbf6c 100644 (file)
@@ -421,6 +421,7 @@ gst_mp1videoparse_real_chain (Mp1VideoParse *mp1videoparse, GstBuffer *buf, GstP
     outbuf = gst_buffer_create_sub(mp1videoparse->partialbuf, 0, offset+4);
     g_assert(outbuf != NULL);
     GST_BUFFER_TIMESTAMP(outbuf) = mp1videoparse->last_pts;
+    GST_BUFFER_DURATION(outbuf) = GST_SECOND / mp1videoparse->fps;
 
     if (mp1videoparse->in_flush) {
       /* FIXME, send a flush event here */