mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
gst: Don't ask for DMA buffers
Gstreamer simply mmap()s the DMA buffers. This can be very very slow on some hardware, so don't ask for it. For gstreamer to support DMA buffers, it will need to support a proper way of transferring the buffers from the GPU to the CPU, e.g. using EGL/OpenGL.
This commit is contained in:
parent
263adb45f4
commit
15b4c58e80
|
@ -254,7 +254,6 @@ pool_activated (GstPipeWirePool *pool, GstPipeWireSink *sink)
|
||||||
max_buffers ? max_buffers : INT32_MAX),
|
max_buffers ? max_buffers : INT32_MAX),
|
||||||
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16),
|
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16),
|
||||||
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(
|
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(
|
||||||
(1<<SPA_DATA_DmaBuf) |
|
|
||||||
(1<<SPA_DATA_MemFd) |
|
(1<<SPA_DATA_MemFd) |
|
||||||
(1<<SPA_DATA_MemPtr)),
|
(1<<SPA_DATA_MemPtr)),
|
||||||
0);
|
0);
|
||||||
|
|
|
@ -839,7 +839,6 @@ on_param_changed (void *data, uint32_t id,
|
||||||
SPA_PARAM_BUFFERS_stride, SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX),
|
SPA_PARAM_BUFFERS_stride, SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX),
|
||||||
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16),
|
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16),
|
||||||
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(
|
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(
|
||||||
(1<<SPA_DATA_DmaBuf) |
|
|
||||||
(1<<SPA_DATA_MemFd) |
|
(1<<SPA_DATA_MemFd) |
|
||||||
(1<<SPA_DATA_MemPtr)));
|
(1<<SPA_DATA_MemPtr)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue