Commit d53e4a60 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

tests/check/elements/icydemux.c: Don't use deprecated GST_PLUGIN_DEFINE_STATIC.

Original commit message from CVS:
* tests/check/elements/icydemux.c: (GST_START_TEST), (icydemux_suite):
Don't use deprecated GST_PLUGIN_DEFINE_STATIC.
parent 1355ae0c
2008-01-11 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/elements/icydemux.c: (GST_START_TEST), (icydemux_suite):
Don't use deprecated GST_PLUGIN_DEFINE_STATIC.
2008-01-10 Sebastian Dröge <slomo@circular-chaos.org>
* autogen.sh:
......
common @ bd02d788
Subproject commit 49c2fc5c9bff0e9858e89978bd98164a386de51d
Subproject commit bd02d788384b40ff511cac0e32aa77f51a68912d
......@@ -72,20 +72,6 @@ typefind_succeed (GstTypeFind * tf, gpointer private)
}
}
static gboolean
plugin_init (GstPlugin * plugin)
{
gst_type_find_register (plugin, "success", GST_RANK_PRIMARY, typefind_succeed,
NULL, gst_static_caps_get (&typefind_caps), NULL, NULL);
return TRUE;
}
GST_PLUGIN_DEFINE_STATIC (GST_VERSION_MAJOR, GST_VERSION_MINOR,
"gst-test",
"test plugin for icydemux",
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
static void
icydemux_found_pad (GstElement * src, GstPad * pad, gpointer data)
{
......@@ -163,6 +149,10 @@ GST_START_TEST (test_demux)
const gchar *tag;
GstCaps *caps;
fail_unless (gst_type_find_register (NULL, "success", GST_RANK_PRIMARY,
typefind_succeed, NULL, gst_static_caps_get (&typefind_caps), NULL,
NULL));
fake_typefind_caps = TRUE;
caps = gst_caps_from_string (ICYCAPS);
......@@ -252,19 +242,4 @@ icydemux_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = icydemux_suite ();
SRunner *sr = srunner_create (s);
gst_check_init (&argc, &argv);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
srunner_free (sr);
return nf;
}
GST_CHECK_MAIN (icydemux)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment