Skip to content

waylandsink: fix critical warning log of unref current_gstbuffer

After change to cache GstMemory, if the GstMemory key moves from one GstBuffer to another when this wlbuffer still used by compositor, need to use gst_buffer_replace to change this pointer. Because we didn't increase the new gstbuffer's refcount in attach(), and we will lost the previous gstbuffer.

Merge request reports