Commit ea0ed511 authored by Edward Hervey's avatar Edward Hervey
Browse files

rtp: Initialize GstRTPBuffer before usage

parent bd539753
......@@ -397,7 +397,7 @@ gst_rtp_base_audio_payload_set_meta (GstRTPBaseAudioPayload * payload,
{
GstRTPBasePayload *basepayload;
GstRTPBaseAudioPayloadPrivate *priv;
GstRTPBuffer rtp;
GstRTPBuffer rtp = { NULL };
basepayload = GST_RTP_BASE_PAYLOAD_CAST (payload);
priv = payload->priv;
......@@ -453,7 +453,7 @@ gst_rtp_base_audio_payload_push (GstRTPBaseAudioPayload * baseaudiopayload,
GstBuffer *outbuf;
guint8 *payload;
GstFlowReturn ret;
GstRTPBuffer rtp;
GstRTPBuffer rtp = { NULL };
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);
ret = gst_rtp_base_payload_push_list (basepayload, list);
} else {
GstRTPBuffer rtp;
GstRTPBuffer rtp = { NULL };
/* copy payload */
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,
timestamp);
} else {
GstRTPBuffer rtp;
GstRTPBuffer rtp = { NULL };
/* create buffer to hold the payload */
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;
gboolean discont;
gint gap;
GstRTPBuffer rtp;
GstRTPBuffer rtp = { NULL };
filter = GST_RTP_BASE_DEPAYLOAD (parent);
priv = filter->priv;
......
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