Killing Zombies - Unref-ing pipelines waiting for async change

Wes Miller wmiller at
Fri Aug 12 10:47:45 PDT 2011

I missed an error in my code for the pipeline thread.  I wrote:

gst_object_unref( GST_OBJECT ( m_loop ));
m_loop = 0;

You can't unref a GMainLoop!  Produced a G_Object warning and error that
took me forever to find.  Instead, of course, use g_main_loop_unref().

I note that some gstreamer examples I've seen, including a couple in the
docs, omit this step.  I wanted to make sure that my pipeline thread(s)
freed any refs and memory for the loop.


View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list