Commit e6944da1 authored by Damian Hobson-Garcia's avatar Damian Hobson-Garcia Committed by GStreamer Merge Bot

waylandsink: use GstMemory instead of GstBuffer for cache lookup

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>
parent ff5f2640
Pipeline #177351 waiting for manual action with stages
in 43 seconds