mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
gst_caps_get requires a NULL at the end
Original commit message from CVS: gst_caps_get requires a NULL at the end
This commit is contained in:
parent
97197b70bd
commit
c53062c038
1 changed files with 3 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue