From d7a711c35fbfc07b8a5253cac6b3247391bdcb15 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Mon, 4 Jul 2005 09:22:51 +0000 Subject: [PATCH] check/gst/gstpad.c: Only set explicit caps on pads. Original commit message from CVS: 2005-07-04 Andy Wingo * check/gst/gstpad.c: Only set explicit caps on pads. --- ChangeLog | 4 ++++ check/gst/gstpad.c | 6 +++--- tests/check/gst/gstpad.c | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index c32c150ecc..58bdd51ca7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-07-04 Andy Wingo + + * check/gst/gstpad.c: Only set explicit caps on pads. + 2005-07-01 Andy Wingo * tests/network-clock.scm: Commentary update. diff --git a/check/gst/gstpad.c b/check/gst/gstpad.c index abdd4a6169..cfbce7926a 100644 --- a/check/gst/gstpad.c +++ b/check/gst/gstpad.c @@ -75,7 +75,7 @@ START_TEST (test_link_unlink_threaded) sink = gst_pad_new ("sink", GST_PAD_SINK); fail_if (sink == NULL); - caps = gst_caps_new_any (); + caps = gst_caps_from_string ("foo/bar"); gst_pad_set_caps (src, caps); gst_pad_set_caps (sink, caps); @@ -101,7 +101,7 @@ START_TEST (test_refcount) src = gst_pad_new ("src", GST_PAD_SRC); fail_if (src == NULL); - caps = gst_caps_new_any (); + caps = gst_caps_from_string ("foo/bar"); /* one for me */ ASSERT_CAPS_REFCOUNT (caps, "caps", 1); @@ -147,7 +147,7 @@ START_TEST (test_get_allowed_caps) caps = gst_pad_get_allowed_caps (src); fail_unless (caps == NULL); - caps = gst_caps_new_any (); + caps = gst_caps_from_string ("foo/bar"); gst_pad_set_caps (src, caps); gst_pad_set_caps (sink, caps); diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index abdd4a6169..cfbce7926a 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -75,7 +75,7 @@ START_TEST (test_link_unlink_threaded) sink = gst_pad_new ("sink", GST_PAD_SINK); fail_if (sink == NULL); - caps = gst_caps_new_any (); + caps = gst_caps_from_string ("foo/bar"); gst_pad_set_caps (src, caps); gst_pad_set_caps (sink, caps); @@ -101,7 +101,7 @@ START_TEST (test_refcount) src = gst_pad_new ("src", GST_PAD_SRC); fail_if (src == NULL); - caps = gst_caps_new_any (); + caps = gst_caps_from_string ("foo/bar"); /* one for me */ ASSERT_CAPS_REFCOUNT (caps, "caps", 1); @@ -147,7 +147,7 @@ START_TEST (test_get_allowed_caps) caps = gst_pad_get_allowed_caps (src); fail_unless (caps == NULL); - caps = gst_caps_new_any (); + caps = gst_caps_from_string ("foo/bar"); gst_pad_set_caps (src, caps); gst_pad_set_caps (sink, caps);