From a6c11fb9f866e341493af8c316abd0b42f5d7331 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 22 Apr 2004 05:08:19 +0000 Subject: [PATCH] testsuite/refcounting/pad.c: fix test Original commit message from CVS: * testsuite/refcounting/pad.c: (main): fix test --- ChangeLog | 5 +++++ tests/old/testsuite/refcounting/pad.c | 6 ++++-- testsuite/refcounting/pad.c | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6ddeac44ac..e11c1b449c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-22 Benjamin Otte + + * testsuite/refcounting/pad.c: (main): + fix test + 2004-04-22 Benjamin Otte * gst/gstcaps.c: (gst_caps_subtract): diff --git a/tests/old/testsuite/refcounting/pad.c b/tests/old/testsuite/refcounting/pad.c index f08ba7d283..049efe9c77 100644 --- a/tests/old/testsuite/refcounting/pad.c +++ b/tests/old/testsuite/refcounting/pad.c @@ -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)); } diff --git a/testsuite/refcounting/pad.c b/testsuite/refcounting/pad.c index f08ba7d283..049efe9c77 100644 --- a/testsuite/refcounting/pad.c +++ b/testsuite/refcounting/pad.c @@ -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)); }