From 5348de76b1f8d08ba257867281151a293f31b394 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 17 May 2011 13:03:57 +0200 Subject: [PATCH] tests: Update for caps/pad template related API changes --- tests/check/elements/ffmpegcolorspace.c | 4 +++- tests/check/elements/videoscale.c | 1 + tests/check/elements/videotestsrc.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/check/elements/ffmpegcolorspace.c b/tests/check/elements/ffmpegcolorspace.c index c54532b..d5946ff 100644 --- a/tests/check/elements/ffmpegcolorspace.c +++ b/tests/check/elements/ffmpegcolorspace.c @@ -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); diff --git a/tests/check/elements/videoscale.c b/tests/check/elements/videoscale.c index e24ad4d..4ed1dfa 100644 --- a/tests/check/elements/videoscale.c +++ b/tests/check/elements/videoscale.c @@ -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; diff --git a/tests/check/elements/videotestsrc.c b/tests/check/elements/videotestsrc.c index c24c2e1..35eab3a 100644 --- a/tests/check/elements/videotestsrc.c +++ b/tests/check/elements/videotestsrc.c @@ -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); } -- 2.7.4