Add pipewire buffers_dataType parameter in pipwire_screencast.c

This commit is contained in:
columbarius 2020-09-18 23:27:12 +02:00 committed by Simon Ser
parent 25e7719d18
commit c2883a4e43
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ static void pwr_handle_stream_param_changed(void *data, uint32_t id,
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(1),
SPA_PARAM_BUFFERS_size, SPA_POD_Int(cast->simple_frame.size),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(cast->simple_frame.stride),
SPA_PARAM_BUFFERS_align, SPA_POD_Int(ALIGN));
SPA_PARAM_BUFFERS_align, SPA_POD_Int(ALIGN),
SPA_PARAM_BUFFERS_dataType, SPA_POD_Int((1<<SPA_DATA_MemPtr)));
params[1] = spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_ParamMeta, SPA_PARAM_Meta,