[Bug 697872] New: plugin: fix name expansion in GST_PLUGIN_DEFINE() macro
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Apr 12 06:01:15 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=697872
GStreamer | gstreamer (core) | git
Summary: plugin: fix name expansion in GST_PLUGIN_DEFINE()
macro
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: gb.devel at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=241346)
View: https://bugzilla.gnome.org/attachment.cgi?id=241346
Review: https://bugzilla.gnome.org/review?bug=697872&attachment=241346
plugin: fix name expansion in GST_PLUGIN_DEFINE() macro
Hi, this patch makes GST_PLUGIN_DEFINE use G_STRINGIFY() to convert the name
argument into a meaningful string. The advantage of this is that `name' can be
expanded from other macros defined in the plug-in element.
So, if I have the following:
#define PLUGIN_NAME(NAME) NAME
GST_PLUGIN_DEFINE(major, minor, PLUGIN_NAME(vaapi), ...)
this now expands to "vaapi" instead of PLUGIN_NAME(vaapi) :)
PS: sorry, the padding used to the next '\' is spaces instead of tabs. I can
change it to tabs so that to be consistent with surrounding lines.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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