Killing Zombies - Unref-ing pipelines waiting for async change

Stefan Kost ensonic at hora-obscura.de
Wed Aug 17 00:55:45 PDT 2011


Hi Wes,
On 08/12/11 19:47, Wes Miller wrote:
> 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.
Going systematically over the examples (by means of grep or the like)
and providing patches to clean things up is a great way to contribute.

Stefan

> Wes
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Killing-Zombies-Unref-ing-pipelines-waiting-for-async-change-tp3732732p3740019.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list