List Info

Thread: problem with g_object properties




problem with g_object properties
user name
2006-04-28 13:27:14
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.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )