diff --git a/src/pipewire/private.h b/src/pipewire/private.h index 0f62ee44e..830534b7c 100644 --- a/src/pipewire/private.h +++ b/src/pipewire/private.h @@ -1321,8 +1321,6 @@ void pw_settings_init(struct pw_context *context); int pw_settings_expose(struct pw_context *context); void pw_settings_clean(struct pw_context *context); -pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr); - /** \endcond */ #ifdef __cplusplus diff --git a/src/pipewire/thread.c b/src/pipewire/thread.c index d845f1477..68a708180 100644 --- a/src/pipewire/thread.c +++ b/src/pipewire/thread.c @@ -25,8 +25,9 @@ do { \ } while(false); SPA_EXPORT -pthread_attr_t *pw_thread_fill_attr(const struct spa_dict *props, pthread_attr_t *attr) +void *pw_thread_fill_attr(const struct spa_dict *props, void *_attr) { + pthread_attr_t *attr = _attr; const char *str; int res; diff --git a/src/pipewire/thread.h b/src/pipewire/thread.h index e29fb36e5..5ce948dcb 100644 --- a/src/pipewire/thread.h +++ b/src/pipewire/thread.h @@ -27,6 +27,7 @@ extern "C" { SPA_DEPRECATED void pw_thread_utils_set(struct spa_thread_utils *impl); struct spa_thread_utils *pw_thread_utils_get(void); +void *pw_thread_fill_attr(const struct spa_dict *props, void *attr); #define pw_thread_utils_create(...) spa_thread_utils_create(pw_thread_utils_get(), ##__VA_ARGS__) #define pw_thread_utils_join(...) spa_thread_utils_join(pw_thread_utils_get(), ##__VA_ARGS__)