mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/gstelementfactory.c: Microoptimization that saves stunning 80 bytes.
Original commit message from CVS: * gst/gstelementfactory.c: (__gst_element_details_clear): Microoptimization that saves stunning 80 bytes.
This commit is contained in:
parent
c38d50ed06
commit
0aeac41ffd
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-06-26 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/gstelementfactory.c: (__gst_element_details_clear):
|
||||||
|
Microoptimization that saves stunning 80 bytes.
|
||||||
|
|
||||||
2007-06-25 Stefan Kost <ensonic@users.sf.net>
|
2007-06-25 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/plugins/gstreamer-plugins.args:
|
* docs/plugins/gstreamer-plugins.args:
|
||||||
|
|
|
@ -169,13 +169,10 @@ void
|
||||||
__gst_element_details_clear (GstElementDetails * dp)
|
__gst_element_details_clear (GstElementDetails * dp)
|
||||||
{
|
{
|
||||||
g_free (dp->longname);
|
g_free (dp->longname);
|
||||||
dp->longname = NULL;
|
|
||||||
g_free (dp->klass);
|
g_free (dp->klass);
|
||||||
dp->klass = NULL;
|
|
||||||
g_free (dp->description);
|
g_free (dp->description);
|
||||||
dp->description = NULL;
|
|
||||||
g_free (dp->author);
|
g_free (dp->author);
|
||||||
dp->author = NULL;
|
memset (dp, 0, sizeof (GstElementDetails));
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VALIDATE_SET(__dest, __src, __entry) \
|
#define VALIDATE_SET(__dest, __src, __entry) \
|
||||||
|
|
Loading…
Reference in a new issue