mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
rtp: copy metadata in the (de)payloaders which is missed before
https://bugzilla.gnome.org/show_bug.cgi?id=753706
This commit is contained in:
parent
5c680333ba
commit
38d269f80d
3 changed files with 8 additions and 1 deletions
|
@ -164,8 +164,9 @@ gst_rtp_g723_pay_flush (GstRTPG723Pay * pay)
|
||||||
pay->discont = FALSE;
|
pay->discont = FALSE;
|
||||||
}
|
}
|
||||||
gst_rtp_buffer_unmap (&rtp);
|
gst_rtp_buffer_unmap (&rtp);
|
||||||
gst_rtp_drop_meta (GST_ELEMENT_CAST (pay), outbuf,
|
gst_rtp_copy_meta (GST_ELEMENT_CAST (pay), outbuf, payload_buf,
|
||||||
g_quark_from_static_string (GST_META_TAG_AUDIO_STR));
|
g_quark_from_static_string (GST_META_TAG_AUDIO_STR));
|
||||||
|
|
||||||
outbuf = gst_buffer_append (outbuf, payload_buf);
|
outbuf = gst_buffer_append (outbuf, payload_buf);
|
||||||
|
|
||||||
ret = gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (pay), outbuf);
|
ret = gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (pay), outbuf);
|
||||||
|
|
|
@ -151,6 +151,9 @@ gst_rtp_gsm_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
GST_BUFFER_PTS (outbuf) = timestamp;
|
GST_BUFFER_PTS (outbuf) = timestamp;
|
||||||
GST_BUFFER_DURATION (outbuf) = duration;
|
GST_BUFFER_DURATION (outbuf) = duration;
|
||||||
|
|
||||||
|
gst_rtp_copy_meta (GST_ELEMENT_CAST (rtpgsmpay), outbuf, buffer,
|
||||||
|
g_quark_from_static_string (GST_META_TAG_AUDIO_STR));
|
||||||
|
|
||||||
/* append payload */
|
/* append payload */
|
||||||
outbuf = gst_buffer_append (outbuf, buffer);
|
outbuf = gst_buffer_append (outbuf, buffer);
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gstrtpklvpay.h"
|
#include "gstrtpklvpay.h"
|
||||||
|
#include "gstrtputils.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -159,6 +160,8 @@ gst_rtp_klv_pay_handle_buffer (GstRTPBasePayload * basepayload, GstBuffer * buf)
|
||||||
|
|
||||||
GST_LOG_OBJECT (pay, "packet with payload size %u", payload_size);
|
GST_LOG_OBJECT (pay, "packet with payload size %u", payload_size);
|
||||||
|
|
||||||
|
gst_rtp_copy_meta (GST_ELEMENT_CAST (pay), outbuf, buf, 0);
|
||||||
|
|
||||||
payloadbuf = gst_buffer_copy_region (buf, GST_BUFFER_COPY_MEMORY,
|
payloadbuf = gst_buffer_copy_region (buf, GST_BUFFER_COPY_MEMORY,
|
||||||
offset, payload_size);
|
offset, payload_size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue