diff --git a/include/pipewire_screencast.h b/include/pipewire_screencast.h index a90409a..59481ed 100644 --- a/include/pipewire_screencast.h +++ b/include/pipewire_screencast.h @@ -3,8 +3,8 @@ #include "screencast_common.h" -#define BUFFERS 1 -#define ALIGN 16 +#define XDPW_PWR_BUFFERS 1 +#define XDPW_PWR_ALIGN 16 void xdpw_pwr_stream_init(struct xdpw_screencast_instance *cast); int xdpw_pwr_core_connect(struct xdpw_state *state); diff --git a/src/screencast/pipewire_screencast.c b/src/screencast/pipewire_screencast.c index f88af91..a8984c1 100644 --- a/src/screencast/pipewire_screencast.c +++ b/src/screencast/pipewire_screencast.c @@ -115,11 +115,11 @@ static void pwr_handle_stream_param_changed(void *data, uint32_t id, params[0] = spa_pod_builder_add_object(&b, SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers, - SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(BUFFERS, 1, 32), + SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(XDPW_PWR_BUFFERS, 1, 32), 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(XDPW_PWR_ALIGN)); params[1] = spa_pod_builder_add_object(&b, SPA_TYPE_OBJECT_ParamMeta, SPA_PARAM_Meta,