From ef073e6ce222706c321fb853a513e6493be9b8c9 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 7 Jun 2003 00:28:20 +0000 Subject: [PATCH] Add duration field support to mad - thanks to Joshua Original commit message from CVS: Add duration field support to mad - thanks to Joshua --- ext/mad/gstmad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index c5610dd883..1e189174b0 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -1268,8 +1268,8 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) } time_offset = mad->total_samples * GST_SECOND / mad->frame.header.samplerate; - time_duration = ((mad->total_samples + nsamples) * GST_SECOND - / mad->frame.header.samplerate) - time_offset; + time_duration = (nsamples * GST_SECOND + / mad->frame.header.samplerate); } if (mad->index) {