gstreamer/subprojects/gst-plugins-bad/ext/gtk
Hugues Fruchet 5c307e8d17 gtkwaylandsink: do not use drm dumb pool when importing DMAbuf buffers
There is no need to use DRM dumb pool if buffer to
render is already a DMABuf, just import it and render it.

This fixes a DMAbuf memory leakage when waylandsink downstream
element exports DMABuf while waylandsink is configured to be
DMABuf exporter (drm-device=/drv/dri/card0):

gst-launch-1.0 v4l2src io-mode=4 ! gtkwaylandsink drm-device=/dev/dri/card0

leakage identfied with command:
watch "cat /sys/kernel/debug/dma_buf/bufinfo | grep attached "

Fixes #2729

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5350>
2023-09-19 16:21:58 +00:00
..
gstgtkutils.c
gstgtkutils.h
gstgtkwaylandsink.c gtkwaylandsink: do not use drm dumb pool when importing DMAbuf buffers 2023-09-19 16:21:58 +00:00
gstgtkwaylandsink.h
gstplugin.c
gtkgstbasewidget.c
gtkgstbasewidget.h
gtkgstwaylandwidget.c
gtkgstwaylandwidget.h
meson.build meson: Call pkgconfig.generate in the loop where we declare plugins dependencies 2022-09-01 21:17:35 +00:00