tests: Update for caps/pad template related API changes
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 17 May 2011 11:03:57 +0000 (13:03 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 17 May 2011 11:06:01 +0000 (13:06 +0200)
tests/check/elements/ffmpegcolorspace.c
tests/check/elements/videoscale.c
tests/check/elements/videotestsrc.c

index c54532b..d5946ff 100644 (file)
@@ -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);
 
index e24ad4d..4ed1dfa 100644 (file)
@@ -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;
index c24c2e1..35eab3a 100644 (file)
@@ -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);
 }