From: Tim-Philipp Müller Date: Sun, 29 Apr 2012 14:53:05 +0000 (+0100) Subject: tests: use public accessors to get plugin description details X-Git-Tag: RELEASE-0.11.91~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8304137d34327d8d43c4efe1e4a7fcf83b577fe;p=platform%2Fupstream%2Fgstreamer.git tests: use public accessors to get plugin description details --- diff --git a/tests/check/gst/gstplugin.c b/tests/check/gst/gstplugin.c index 3db1150..0824b06 100644 --- a/tests/check/gst/gstplugin.c +++ b/tests/check/gst/gstplugin.c @@ -61,7 +61,7 @@ GST_START_TEST (test_registry) /* one for the registry, one for the list */ GST_DEBUG ("refcount %d %s", GST_OBJECT_REFCOUNT_VALUE (plugin), - plugin->desc.name); + gst_plugin_get_name (plugin)); ASSERT_OBJECT_REFCOUNT (plugin, "plugin in registry", 2); gst_object_unref (plugin); @@ -145,11 +145,12 @@ GST_START_TEST (test_find_plugin) fail_if (plugin == NULL, "Failed to find coreelements plugin"); ASSERT_OBJECT_REFCOUNT (plugin, "plugin", 2); - fail_unless_equals_string (plugin->desc.version, VERSION); - fail_unless_equals_string (plugin->desc.license, "LGPL"); - fail_unless_equals_string (plugin->desc.source, "gstreamer"); - fail_unless_equals_string (plugin->desc.package, GST_PACKAGE_NAME); - fail_unless_equals_string (plugin->desc.origin, GST_PACKAGE_ORIGIN); + fail_unless_equals_string (gst_plugin_get_version (plugin), VERSION); + fail_unless_equals_string (gst_plugin_get_license (plugin), "LGPL"); + fail_unless_equals_string (gst_plugin_get_source (plugin), "gstreamer"); + fail_unless_equals_string (gst_plugin_get_package (plugin), GST_PACKAGE_NAME); + fail_unless_equals_string (gst_plugin_get_origin (plugin), + GST_PACKAGE_ORIGIN); gst_object_unref (plugin); }