mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 09:25:42 +00:00
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)
This commit is contained in:
parent
781e79e043
commit
5f524cd068
3 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-04-20 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* testsuite/caps/filtercaps.c: (main):
|
||||
fix test to test things correctly (caps are complicated)
|
||||
|
||||
2004-04-20 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* testsuite/caps/Makefile.am:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue