[gst-devel] problem with g_object properties
James "Doc" Livingston
doclivingston at gmail.com
Fri Apr 28 06:21:10 CEST 2006
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
--
>> After all, everybody's got a water buffalo. -- Ben Coleman
> in their machine room. -- Nix
with the candlestick. -- Christian Bauernfeind
More information about the gstreamer-devel
mailing list