GNOME Bugzilla – Bug 344115
[patch] make more internal data const
Last modified: 2006-07-11 22:28:24 UTC
two GstFlowQuarks members can be made const to save a little memory
Created attachment 66889 [details] [review] make two members const
there are few other instances in gstevent and gstmessage.
I'll change GstEventQuarks and GstMessageQuarks after freeze together with those in gstpad.c
and another one in gstformat.c struct _GstFormatDefinition
and in gstquery.h struct _GstQueryTypeDefinition
those last two would break API and cannot be changed.
indeed, moved the last two to #339744
Patch by: Stefan Kost <ensonic at sonicpulse dot de> * gst/gstevent.c: (gst_event_get_type): * gst/gstmessage.c: * gst/gstpad.c: (gst_pad_chain_unchecked), (gst_pad_chain), (gst_pad_push): constify quark registration strings. Fixes #344115 Avoid unneeded type checking is _pad_push() by internally calling gst_pad_chain_unchecked().