rtpbuffer: add GST_RTP_BUFFER_INIT to initialize RTP buffers on the stack
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 9 Dec 2011 15:03:41 +0000 (15:03 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 9 Dec 2011 15:03:41 +0000 (15:03 +0000)
Fixes build of -good.

gst-libs/gst/rtp/gstrtpbuffer.h

index c311069..c1e49e0 100644 (file)
@@ -55,6 +55,8 @@ struct _GstRTPBuffer
   gsize        maxsize;
 };
 
+#define GST_RTP_BUFFER_INIT {NULL,0,NULL,0,0}
+
 /* creating buffers */
 void            gst_rtp_buffer_allocate_data         (GstBuffer *buffer, guint payload_len,
                                                       guint8 pad_len, guint8 csrc_count);