From 712da782c9149a4e3e67f22a1d8af0a82d92abde Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 4 Aug 2003 22:43:44 +0000 Subject: Add DURATION support. It still doesn't work, see #119036 for why and on how to fix it 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/mpeg1videoparse') diff --git a/gst/mpeg1videoparse/gstmp1videoparse.c b/gst/mpeg1videoparse/gstmp1videoparse.c index 3a17dbe7..4ccbf6ca 100644 --- a/gst/mpeg1videoparse/gstmp1videoparse.c +++ b/gst/mpeg1videoparse/gstmp1videoparse.c @@ -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 */ -- cgit v1.2.1