From 3406549cf66a8b8ea9a9500e8cf5132a6bd806e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Boul=C3=A9?= Date: Thu, 27 Oct 2011 14:56:24 +0100 Subject: [PATCH] caps: use G_GNUC_NULL_TERMINATED for gst_caps_new_simple() and gst_caps_new_full() If you get warnings, use gst_caps_new_empty(). https://bugzilla.gnome.org/show_bug.cgi?id=343346 --- gst/gstcaps.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gstcaps.h b/gst/gstcaps.h index 567f7b852e..fb224f8cf1 100644 --- a/gst/gstcaps.h +++ b/gst/gstcaps.h @@ -342,8 +342,9 @@ GstCaps * gst_caps_new_empty (void); GstCaps * gst_caps_new_any (void); GstCaps * gst_caps_new_simple (const char *media_type, const char *fieldname, - ...); -GstCaps * gst_caps_new_full (GstStructure *struct1, ...); + ...) G_GNUC_NULL_TERMINATED; +GstCaps * gst_caps_new_full (GstStructure *struct1, + ...) G_GNUC_NULL_TERMINATED; GstCaps * gst_caps_new_full_valist (GstStructure *structure, va_list var_args);