[Bug 753081] applemedia/avsample: Cleanup of CA layer is racy and crashes occasionally

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 30 20:00:13 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=753081

Matthew Waters <ystreet00 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ystreet00 at gmail.com
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.5.3

--- Comment #1 from Matthew Waters <ystreet00 at gmail.com> ---
Thanks!

commit 0cc6d16c94d0e5ab09167b3a8d03ed0531c8f795
Author: Heinrich Fink <hfink at toolsonair.com>
Date:   Thu Jul 30 23:31:21 2015 +0200

    applemedia/avsample: Fix racy cleanup of CA layer

    The block that is dispatched async to the main thread assumed the
    wrapping GstAvSampleVideoSink to be alive. However, at the time of
    the block execution the GstObject instance that is deferenced to access
    the CA layer might already be freed, which caused occasional crashes.
    Instead, we now only pass the CoreAnimation layer that needs to be
    released to the block. We use __block to make sure the block is not
    increasing the refcount of the CA layer again on its own.

    https://bugzilla.gnome.org/show_bug.cgi?id=753081

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list