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.
This commit is contained in:
Wim Taymans 2005-09-26 14:42:09 +00:00
parent 41af36aa2f
commit d040c225c4
3 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
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),

View file

@ -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);
}

View file

@ -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);
}