From c53062c0388f4a946e7f8db4929bf46dd4029a9d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 4 Nov 2003 18:10:36 +0000 Subject: [PATCH] gst_caps_get requires a NULL at the end Original commit message from CVS: gst_caps_get requires a NULL at the end --- gst/videotestsrc/videotestsrc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index 9888341..0005f4e 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -391,7 +391,7 @@ struct fourcc_list_struct *paintinfo_find_by_caps(GstCaps *caps) int fourcc; guint32 format; - gst_caps_get(caps, "format", &format); + gst_caps_get(caps, "format", &format, NULL); for (i = 0; i < n_fourccs; i++) { s = fourcc_list[i].fourcc; //g_print("testing " GST_FOURCC_FORMAT " and %s\n", GST_FOURCC_ARGS(format), s); @@ -411,7 +411,8 @@ struct fourcc_list_struct *paintinfo_find_by_caps(GstCaps *caps) "green_mask", &green_mask, "blue_mask", &blue_mask, "depth", &depth, - "bpp", &bpp); + "bpp", &bpp, + NULL); for (i = 0; i < n_fourccs; i++) { if (strcmp(fourcc_list[i].fourcc, "RGB ") == 0 && fourcc_list[i].red_mask == red_mask && -- 2.7.4