diff options
author | Edward Hervey <edward@collabora.com> | 2011-12-05 18:40:12 +0100 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2011-12-05 18:40:12 +0100 |
commit | 86a57e354671fadc8eb811e995c78c742ec15133 (patch) | |
tree | 015be543adfb64968cf59c1aa22ed0ef390fe1ad /gst/rtpmanager/rtpjitterbuffer.c | |
parent | 04520cbe9a6c303f6e89c61b6dd9b060f85752a4 (diff) |
rtpmanager: Initialize GstRTPBuffer before usage
Diffstat (limited to 'gst/rtpmanager/rtpjitterbuffer.c')
-rw-r--r-- | gst/rtpmanager/rtpjitterbuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtpmanager/rtpjitterbuffer.c b/gst/rtpmanager/rtpjitterbuffer.c index a02145b65..512f0935d 100644 --- a/gst/rtpmanager/rtpjitterbuffer.c +++ b/gst/rtpmanager/rtpjitterbuffer.c @@ -608,7 +608,7 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf, GList *list; guint32 rtptime; guint16 seqnum; - GstRTPBuffer rtp; + GstRTPBuffer rtp = {NULL}; g_return_val_if_fail (jbuf != NULL, FALSE); g_return_val_if_fail (buf != NULL, FALSE); @@ -621,7 +621,7 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, GstBuffer * buf, for (list = jbuf->packets->head; list; list = g_list_next (list)) { guint16 qseq; gint gap; - GstRTPBuffer rtpb; + GstRTPBuffer rtpb = {NULL}; gst_rtp_buffer_map (GST_BUFFER_CAST (list->data), GST_MAP_READ, &rtpb); qseq = gst_rtp_buffer_get_seq (&rtpb); @@ -863,7 +863,7 @@ rtp_jitter_buffer_get_ts_diff (RTPJitterBuffer * jbuf) guint64 high_ts, low_ts; GstBuffer *high_buf, *low_buf; guint32 result; - GstRTPBuffer rtp; + GstRTPBuffer rtp = {NULL}; g_return_val_if_fail (jbuf != NULL, 0); |