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 Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gstgtkutils.h Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gstgtkwaylandsink.c gtkwaylandsink: do not use drm dumb pool when importing DMAbuf buffers 2023-09-19 16:21:58 +00:00
gstgtkwaylandsink.h Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gstplugin.c Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gtkgstbasewidget.c Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gtkgstbasewidget.h Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gtkgstwaylandwidget.c Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
gtkgstwaylandwidget.h Add new gtkwaylandsink element 2022-08-02 16:34:13 +00:00
meson.build meson: Call pkgconfig.generate in the loop where we declare plugins dependencies 2022-09-01 21:17:35 +00:00