caps: fix compilation warning
authorMatej Knopp <matej.knopp@gmail.com>
Sun, 27 Nov 2011 19:32:14 +0000 (20:32 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 27 Nov 2011 22:34:54 +0000 (22:34 +0000)
GST_STATIC_CAPS is missing initializer for GstMiniObject's n_weak_refs and
weak_refs resulting in compilation warning (llvm-gcc  -Wall)

https://bugzilla.gnome.org/show_bug.cgi?id=664927

gst/gstcaps.h

index 4b688ab..b90139d 100644 (file)
@@ -127,7 +127,7 @@ typedef enum {
  */
 #define GST_STATIC_CAPS(string) \
 { \
-  /* miniobject */ { { 0, 0, 0, 0, NULL, NULL, NULL }, \
+  /* miniobject */ { { 0, 0, 0, 0, NULL, NULL, NULL, 0, NULL }, \
   /* caps */ NULL }, \
   /* string */ string, \
   GST_PADDING_INIT \