summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-08-04 22:43:44 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-08-04 22:43:44 +0000
commit712da782c9149a4e3e67f22a1d8af0a82d92abde (patch)
treee8a7106c957faf41cc61a47b9105d689d00c3320
parent77059a38c12fde0cb4ba75cdc3b310649695e9ff (diff)
downloadgst-plugins-bad-712da782c9149a4e3e67f22a1d8af0a82d92abde.tar.gz
gst-plugins-bad-712da782c9149a4e3e67f22a1d8af0a82d92abde.tar.bz2
gst-plugins-bad-712da782c9149a4e3e67f22a1d8af0a82d92abde.zip
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
-rw-r--r--gst/mpeg1videoparse/gstmp1videoparse.c1
1 files changed, 1 insertions, 0 deletions
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 */