• Damian Hobson-Garcia's avatar
    waylandsink: use GstMemory instead of GstBuffer for cache lookup · e6944da1
    Damian Hobson-Garcia authored
    The GstMemory objects contained in a GstBuffer could be replaced
    by an upstream element, which would break the association beteen
    the GstBuffer and the wayland wl_buffer, make the cache lookup
    results incorrect.
    This patch changes the cache lookup to use the first GstMemory
    in a buffer instead.  For multi-plane buffers, this assumes that
    all of the GstMemory(s) will always be moved together as a set,
    and that the same (first) GstMemory isn't used with different
    combinations of other GstMemory(s).
    
    Part-of: <!1401>
    e6944da1
wldisplay.h 3.38 KB