Commit d040c225 authored by Wim Taymans's avatar Wim Taymans

gst/rtp/gstrtpmpaenc.c: Set buffer duration correctly.

Original commit message from CVS:
* gst/rtp/gstrtpmpaenc.c: (gst_rtpmpaenc_flush),
(gst_rtpmpaenc_handle_buffer):
Set buffer duration correctly.
parent 41af36aa
2005-09-26 Wim Taymans <wim@fluendo.com>
* gst/rtp/gstrtpmpaenc.c: (gst_rtpmpaenc_flush),
(gst_rtpmpaenc_handle_buffer):
Set buffer duration correctly.
2005-09-26 Tim-Philipp Müller <tim at centricular dot net>
* gst/avi/gstavidemux.c: (gst_avi_demux_base_init),
......
......@@ -210,6 +210,7 @@ gst_rtpmpaenc_flush (GstRtpMPAEnc * rtpmpaenc)
gst_rtpbuffer_set_marker (outbuf, TRUE);
GST_BUFFER_TIMESTAMP (outbuf) = rtpmpaenc->first_ts;
GST_BUFFER_DURATION (outbuf) = rtpmpaenc->duration;
ret = gst_basertppayload_push (GST_BASE_RTP_PAYLOAD (rtpmpaenc), outbuf);
}
......
......@@ -210,6 +210,7 @@ gst_rtpmpaenc_flush (GstRtpMPAEnc * rtpmpaenc)
gst_rtpbuffer_set_marker (outbuf, TRUE);
GST_BUFFER_TIMESTAMP (outbuf) = rtpmpaenc->first_ts;
GST_BUFFER_DURATION (outbuf) = rtpmpaenc->duration;
ret = gst_basertppayload_push (GST_BASE_RTP_PAYLOAD (rtpmpaenc), outbuf);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment