rtp: Initialize GstRTPBuffer before usage

This commit is contained in:
Edward Hervey 2011-12-05 18:42:24 +01:00
parent bd539753eb
commit ea0ed511f8
2 changed files with 5 additions and 5 deletions

View file

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

View file

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