[Bug 778434] applemedia: race condition in videotexturecache.m

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Feb 10 10:48:14 UTC 2017


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

Nick Kallen <socialmediamaster9000 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #345416|0                           |1
        is obsolete|                            |

--- Comment #2 from Nick Kallen <socialmediamaster9000 at gmail.com> ---
Created attachment 345418
  --> https://bugzilla.gnome.org/attachment.cgi?id=345418&action=edit
manage the texture lifetime explicitly in iosglmemory


This solution treats the texture as a special object in iosglmemory and not as
generic user_data to be destroyed by gstglmemory. The latter doesn't destroy
the user_data in any particular thread.

This solution may violate the encapsulation boundary between iosglmemory and
videotexture cache; however, these objects are only used with one another and
are tightly coupled anyway, since iosglmemory requires the use of a
wrapped_texture. Ultimately, I think we should refactor this code so that
videotexturecache is a subclass or a strategy object of iosglmemory, but I
think this needs more thought before such a major change.

-- 
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