+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:
}
}
-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)
{
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);
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)