[gst-devel] Recent change in gstregistry.c

iain iain at prettypeople.org
Sun Nov 16 14:28:18 CET 2003


On Sun, 2003-11-16 at 19:31, Brett Kosinski wrote:
> So, there was a recent change made to gstregistry (at my behest) to change
> the plugin_added parameter types from G_TYPE_POINTER to GST_TYPE_PLUGIN.
> However, this checkin was reversed in the last couple days, as apparently
> it caused a crash in gst-register.  However, the original change is more
> "correct" (not to mention useful), so my question is, does anyone know
> *why* changing the callback type causes a crash in gst-register?

The problem was that GST_TYPE_PLUGIN isn't of type G_TYPE_POINTER but of
G_TYPE_BOXED (I would imagine this is the problem). Something somewhere
(forget where) was trying to get the value as g_value_get_pointer, which
failed, and there was a crash.

Company told me to make that change, it fixed the problem, and then I
was told to commit it. If you want to make the change and then find out
where gst-register-0.7 is crashing and fix that, so ahead :)

iain
-- 
"Miss Celine Dion sings lovesongs while our cities burn"





More information about the gstreamer-devel mailing list