testsuite/refcounting/pad.c: fix test
authorBenjamin Otte <otte@gnome.org>
Thu, 22 Apr 2004 05:08:19 +0000 (05:08 +0000)
committerBenjamin Otte <otte@gnome.org>
Thu, 22 Apr 2004 05:08:19 +0000 (05:08 +0000)
Original commit message from CVS:
* testsuite/refcounting/pad.c: (main):
fix test

ChangeLog
tests/old/testsuite/refcounting/pad.c
testsuite/refcounting/pad.c

index 6ddeac4..e11c1b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-04-22  Benjamin Otte  <otte@gnome.org>
 
+       * testsuite/refcounting/pad.c: (main):
+         fix test
+
+2004-04-22  Benjamin Otte  <otte@gnome.org>
+
        * gst/gstcaps.c: (gst_caps_subtract):
          allow subtracting ANY and EMPTY from ANY caps
 
index f08ba7d..049efe9 100644 (file)
@@ -132,14 +132,16 @@ main (int argc, gchar * argv[])
 
   for (i = 0; i < iters; i++) {
     padtempl =
-        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
+        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES,
+        gst_caps_new_any ());
     gst_object_unref (GST_OBJECT (padtempl));
   }
   g_print ("%d padtemplates create/unref %ld\n", iters, vmsize () - usage1);
 
   for (i = 0; i < iters; i++) {
     padtempl =
-        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
+        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES,
+        gst_caps_new_any ());
     pad = gst_pad_new_from_template (padtempl, "sink1");
     gst_object_unref (GST_OBJECT (pad));
   }
index f08ba7d..049efe9 100644 (file)
@@ -132,14 +132,16 @@ main (int argc, gchar * argv[])
 
   for (i = 0; i < iters; i++) {
     padtempl =
-        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
+        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES,
+        gst_caps_new_any ());
     gst_object_unref (GST_OBJECT (padtempl));
   }
   g_print ("%d padtemplates create/unref %ld\n", iters, vmsize () - usage1);
 
   for (i = 0; i < iters; i++) {
     padtempl =
-        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
+        gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES,
+        gst_caps_new_any ());
     pad = gst_pad_new_from_template (padtempl, "sink1");
     gst_object_unref (GST_OBJECT (pad));
   }