summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpspeexpay.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtp/gstrtpspeexpay.c')
-rw-r--r--gst/rtp/gstrtpspeexpay.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpspeexpay.c b/gst/rtp/gstrtpspeexpay.c
index 2ca72408..1e871beb 100644
--- a/gst/rtp/gstrtpspeexpay.c
+++ b/gst/rtp/gstrtpspeexpay.c
@@ -209,7 +209,7 @@ gst_rtp_speex_pay_handle_buffer (GstBaseRTPPayload * basepayload,
guint size, payload_len;
GstBuffer *outbuf;
guint8 *payload, *data;
- GstClockTime timestamp;
+ GstClockTime timestamp, duration;
GstFlowReturn ret;
rtpspeexpay = GST_RTP_SPEEX_PAY (basepayload);
@@ -236,6 +236,7 @@ gst_rtp_speex_pay_handle_buffer (GstBaseRTPPayload * basepayload,
}
timestamp = GST_BUFFER_TIMESTAMP (buffer);
+ duration = GST_BUFFER_DURATION (buffer);
/* FIXME, only one SPEEX frame per RTP packet for now */
payload_len = size;
@@ -244,8 +245,10 @@ gst_rtp_speex_pay_handle_buffer (GstBaseRTPPayload * basepayload,
/* FIXME, assert for now */
g_assert (payload_len <= GST_BASE_RTP_PAYLOAD_MTU (rtpspeexpay));
- /* copy timestamp */
+ /* copy timestamp and duration */
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
+ GST_BUFFER_DURATION (outbuf) = duration;
+
/* get payload */
payload = gst_rtp_buffer_get_payload (outbuf);