[gst-devel] gst_object_unref on a bin

David Parker david at neongoat.com
Fri Jul 26 21:50:02 CEST 2002


On Wed, 24 Jul 2002 20:50:56 -0400, Andy Wingo wrote:

> Can you make up a short test case? Thanks. Or if your code is short,
> just post that. We need to doc the object life cycle better..
> 
> wingo.

I isolated the code that's causing this behavior. My actual program is much
more complicated, but even after stripping off the extra stuff the attached
code seems to hit the same bug. What's interesting is that in the following
block:

	gst_object_unref(GST_OBJECT(osssink));
	gst_object_unref(GST_OBJECT(decoder));
	gst_object_unref(GST_OBJECT(filesrc));
	gst_object_unref(GST_OBJECT(bin));

Commenting out either the first 3 lines or the last line stops the crash.

David

-------
David Parker <david at neongoat.com>
Neon Goat Productions
http://www.neongoat.com
0xF90FFFE5 / F362 51F7 6D51 85EB AF68 75B9 D29B 1AFC F90F FFE5
-------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gst-test.c
Type: text/x-csrc
Size: 1067 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20020726/b92deeea/attachment.c>


More information about the gstreamer-devel mailing list