mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
tests: Update for caps/pad template related API changes
This commit is contained in:
parent
c255019b90
commit
5348de76b1
3 changed files with 6 additions and 2 deletions
|
@ -264,7 +264,7 @@ GST_START_TEST (test_rgb_to_rgb)
|
|||
"black", 2, 0x00, 0x00, 0x00}
|
||||
};
|
||||
GstElement *pipeline, *src, *filter1, *csp, *filter2, *sink;
|
||||
const GstCaps *template_caps;
|
||||
GstCaps *template_caps;
|
||||
GstBuffer *buf = NULL;
|
||||
GstPad *srcpad;
|
||||
GList *conversions, *l;
|
||||
|
@ -407,6 +407,8 @@ GST_START_TEST (test_rgb_to_rgb)
|
|||
}
|
||||
}
|
||||
|
||||
gst_caps_unref (template_caps);
|
||||
|
||||
g_list_foreach (conversions, (GFunc) rgb_conversion_free, NULL);
|
||||
g_list_free (conversions);
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ videoscale_get_allowed_caps (void)
|
|||
gst_caps_append_structure (ret[i], gst_structure_copy (s));
|
||||
}
|
||||
|
||||
gst_caps_unref (caps);
|
||||
gst_object_unref (scale);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -261,7 +261,7 @@ GST_START_TEST (test_rgb_formats)
|
|||
"xRGB1555", 16, 15, 0x00007c00, 0x000003e0, 0x0000001f, 0x0000000}
|
||||
};
|
||||
GstElement *pipeline, *src, *filter, *sink;
|
||||
const GstCaps *template_caps;
|
||||
GstCaps *template_caps;
|
||||
GstBuffer *buf = NULL;
|
||||
GstPad *srcpad;
|
||||
gint p, i, e;
|
||||
|
@ -396,6 +396,7 @@ GST_START_TEST (test_rgb_formats)
|
|||
gst_caps_unref (caps);
|
||||
}
|
||||
}
|
||||
gst_caps_unref (template_caps);
|
||||
|
||||
gst_object_unref (pipeline);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue