[Bug 779175] registry: Only scan plugin files that end with an extension
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Feb 24 13:12:45 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=779175
Tim-Philipp Müller <t.i.m at zen.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #346632|none |reviewed
status| |
--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Comment on attachment 346632
--> https://bugzilla.gnome.org/attachment.cgi?id=346632
registry: Only scan plugin files that end with an extension
>+ gchar *filename, *plugin_extension = g_strconcat (".", G_MODULE_SUFFIX, NULL);
>+#ifdef GST_EXTRA_MODULE_SUFFIX
>+ gchar *extra_plugin_extension =
>+ g_strconcat (".", GST_EXTRA_MODULE_SUFFIX, NULL);
>+#endif
>- if (!g_str_has_suffix (dirent, G_MODULE_SUFFIX)
>+ if (!g_str_has_suffix (dirent, plugin_extension)
> #ifdef GST_EXTRA_MODULE_SUFFIX
>- && !g_str_has_suffix (dirent, GST_EXTRA_MODULE_SUFFIX)
>+ && !g_str_has_suffix (dirent, extra_plugin_extension)
> #endif
How about just
g_str_has_suffix (dirent, "." G_MODULE_SUFFIX)
?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list