[gst-devel] problem with g_object properties

Corentin Baron corentin.baron at inrialpes.fr
Fri Apr 28 06:32:06 CEST 2006


James "Doc" Livingston wrote:

>On Fri, 2006-04-28 at 14:33 +0200, Corentin Baron wrote:
>  
>
>>  case ARG_BL_DEVICE:
>>      filter->blinkydevice = g_value_get_string(value);
>>    g_print("gstblinky: set device to %s\n", filter->blinkydevice);
>>    break;
>>    
>>
>
>You need to use g_value_dup_string here. You're using the GValue's copy
>of the string, which will get freed when the GValue is destroyed (before
>g_object_set finishes).
>
>
>Cheers,
>
>James "Doc" Livingston
>  
>
That worked, thanks !

cheers,
Corentin.




More information about the gstreamer-devel mailing list