[Gstreamer-openmax] [PATCH 2/4] plugin: make element_table const

Conrad Parker conrad at metadecks.org
Mon Mar 8 17:57:00 PST 2010


On 9 March 2010 08:26, Felipe Contreras <felipe.contreras at nokia.com> wrote:
> @@ -141,7 +141,7 @@ fetch_element_table (void)
>  {
>     gchar *path;
>     gchar *config, *s;
> -    GstStructure *element;
> +    GstStructure *new, *element;
>
>     path = get_config_path ();
>
> @@ -155,21 +155,23 @@ fetch_element_table (void)
>
>     GST_DEBUG ("parsing config:\n%s", config);
>
> -    element_table = gst_structure_empty_new ("element_table");
> +    new = gst_structure_empty_new ("element_table");
>

Is it ok to expect this will never be built with a C++ compiler? I
recall words like new, delete, class etc. being avoided in various
bits of g* code for some form of portability (where systems like
Windows don't have a proper C compiler).

Conrad.




More information about the Gstreamer-openmax mailing list