[Gstreamer-openmax] [PATCH 1/5] Move component and library name fields to 'util'

Clark, Rob rob at ti.com
Wed Mar 3 15:38:26 PST 2010


On Mar 3, 2010, at 4:51 PM, Felipe Contreras wrote:

> @@ -234,10 +231,10 @@ get_property (GObject *obj,
>     switch (prop_id)
>     {
>         case ARG_COMPONENT_NAME:
> -            g_value_set_string (value, self->omx_component);
> +            g_value_set_string (value, self->gomx->component_name);
>             break;
>         case ARG_LIBRARY_NAME:
> -            g_value_set_string (value, self->omx_library);
> +            g_value_set_string (value, self->gomx->library_name);
>             break;



one thought as I look at the patch (and something that I didn't think of either when I made my original patch)..

but the get_property() for component-name and library-name (and when I send a later patch,  component-role) are basically identical..

what about adding a g_omx_core_get_property_helper() which could be shared by all the base classes?  This way, when I send the patch to add component-role, it just changes GOmxCore and not the base classes ;-)

I can send the updated patch if you like the idea


BR,
-R







More information about the Gstreamer-openmax mailing list