From 5f524cd0689eba3f3e97ca93bd068e7914090b1d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 20 Apr 2004 03:07:12 +0000 Subject: [PATCH] testsuite/caps/filtercaps.c: fix test to test things correctly (caps are complicated) Original commit message from CVS: * testsuite/caps/filtercaps.c: (main): fix test to test things correctly (caps are complicated) --- ChangeLog | 5 +++++ tests/old/testsuite/caps/filtercaps.c | 7 +++++-- testsuite/caps/filtercaps.c | 7 +++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65760fdfbd..ed27e51a2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-20 Benjamin Otte + + * testsuite/caps/filtercaps.c: (main): + fix test to test things correctly (caps are complicated) + 2004-04-20 Benjamin Otte * testsuite/caps/Makefile.am: diff --git a/tests/old/testsuite/caps/filtercaps.c b/tests/old/testsuite/caps/filtercaps.c index acf3f91a70..3711bf7b2b 100644 --- a/tests/old/testsuite/caps/filtercaps.c +++ b/tests/old/testsuite/caps/filtercaps.c @@ -32,9 +32,12 @@ main (gint argc, gchar ** argv) g_assert (sink); gst_element_link_filtered (identity, sink, gst_caps_new_simple ("audio/x-raw-int", NULL)); - caps = gst_pad_get_allowed_caps (gst_element_get_pad (identity, "sink")); - g_print ("caps: %s", gst_caps_to_string (caps)); + caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink")); + g_print ("caps: %s\n", gst_caps_to_string (caps)); g_assert (!gst_caps_is_any (caps)); + caps = gst_pad_get_allowed_caps (gst_element_get_pad (identity, "sink")); + g_print ("allowed caps: %s\n", gst_caps_to_string (caps)); + g_assert (gst_caps_is_any (caps)); return 0; } diff --git a/testsuite/caps/filtercaps.c b/testsuite/caps/filtercaps.c index acf3f91a70..3711bf7b2b 100644 --- a/testsuite/caps/filtercaps.c +++ b/testsuite/caps/filtercaps.c @@ -32,9 +32,12 @@ main (gint argc, gchar ** argv) g_assert (sink); gst_element_link_filtered (identity, sink, gst_caps_new_simple ("audio/x-raw-int", NULL)); - caps = gst_pad_get_allowed_caps (gst_element_get_pad (identity, "sink")); - g_print ("caps: %s", gst_caps_to_string (caps)); + caps = gst_pad_get_caps (gst_element_get_pad (identity, "sink")); + g_print ("caps: %s\n", gst_caps_to_string (caps)); g_assert (!gst_caps_is_any (caps)); + caps = gst_pad_get_allowed_caps (gst_element_get_pad (identity, "sink")); + g_print ("allowed caps: %s\n", gst_caps_to_string (caps)); + g_assert (gst_caps_is_any (caps)); return 0; }