mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
rtp: Initialize GstRTPBuffer before usage
This commit is contained in:
parent
bd539753eb
commit
ea0ed511f8
2 changed files with 5 additions and 5 deletions
|
@ -397,7 +397,7 @@ gst_rtp_base_audio_payload_set_meta (GstRTPBaseAudioPayload * payload,
|
||||||
{
|
{
|
||||||
GstRTPBasePayload *basepayload;
|
GstRTPBasePayload *basepayload;
|
||||||
GstRTPBaseAudioPayloadPrivate *priv;
|
GstRTPBaseAudioPayloadPrivate *priv;
|
||||||
GstRTPBuffer rtp;
|
GstRTPBuffer rtp = { NULL };
|
||||||
|
|
||||||
basepayload = GST_RTP_BASE_PAYLOAD_CAST (payload);
|
basepayload = GST_RTP_BASE_PAYLOAD_CAST (payload);
|
||||||
priv = payload->priv;
|
priv = payload->priv;
|
||||||
|
@ -453,7 +453,7 @@ gst_rtp_base_audio_payload_push (GstRTPBaseAudioPayload * baseaudiopayload,
|
||||||
GstBuffer *outbuf;
|
GstBuffer *outbuf;
|
||||||
guint8 *payload;
|
guint8 *payload;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
GstRTPBuffer rtp;
|
GstRTPBuffer rtp = { NULL };
|
||||||
|
|
||||||
basepayload = GST_RTP_BASE_PAYLOAD (baseaudiopayload);
|
basepayload = GST_RTP_BASE_PAYLOAD (baseaudiopayload);
|
||||||
|
|
||||||
|
@ -526,7 +526,7 @@ gst_rtp_base_audio_payload_push_buffer (GstRTPBaseAudioPayload *
|
||||||
GST_DEBUG_OBJECT (baseaudiopayload, "Pushing list %p", list);
|
GST_DEBUG_OBJECT (baseaudiopayload, "Pushing list %p", list);
|
||||||
ret = gst_rtp_base_payload_push_list (basepayload, list);
|
ret = gst_rtp_base_payload_push_list (basepayload, list);
|
||||||
} else {
|
} else {
|
||||||
GstRTPBuffer rtp;
|
GstRTPBuffer rtp = { NULL };
|
||||||
|
|
||||||
/* copy payload */
|
/* copy payload */
|
||||||
gst_rtp_buffer_map (outbuf, GST_MAP_WRITE, &rtp);
|
gst_rtp_buffer_map (outbuf, GST_MAP_WRITE, &rtp);
|
||||||
|
@ -612,7 +612,7 @@ gst_rtp_base_audio_payload_flush (GstRTPBaseAudioPayload * baseaudiopayload,
|
||||||
gst_rtp_base_audio_payload_push_buffer (baseaudiopayload, buffer,
|
gst_rtp_base_audio_payload_push_buffer (baseaudiopayload, buffer,
|
||||||
timestamp);
|
timestamp);
|
||||||
} else {
|
} else {
|
||||||
GstRTPBuffer rtp;
|
GstRTPBuffer rtp = { NULL };
|
||||||
|
|
||||||
/* create buffer to hold the payload */
|
/* create buffer to hold the payload */
|
||||||
outbuf = gst_rtp_buffer_new_allocate (payload_len, 0, 0);
|
outbuf = gst_rtp_buffer_new_allocate (payload_len, 0, 0);
|
||||||
|
|
|
@ -248,7 +248,7 @@ gst_rtp_base_depayload_chain (GstPad * pad, GstObject * parent, GstBuffer * in)
|
||||||
guint32 rtptime;
|
guint32 rtptime;
|
||||||
gboolean discont;
|
gboolean discont;
|
||||||
gint gap;
|
gint gap;
|
||||||
GstRTPBuffer rtp;
|
GstRTPBuffer rtp = { NULL };
|
||||||
|
|
||||||
filter = GST_RTP_BASE_DEPAYLOAD (parent);
|
filter = GST_RTP_BASE_DEPAYLOAD (parent);
|
||||||
priv = filter->priv;
|
priv = filter->priv;
|
||||||
|
|
Loading…
Reference in a new issue