mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
thread: fix compilation
This commit is contained in:
parent
27fc430eff
commit
9fa72f22cb
2 changed files with 3 additions and 2 deletions
|
|
@ -33,6 +33,7 @@ extern "C" {
|
|||
#include <errno.h>
|
||||
|
||||
#include <spa/utils/defs.h>
|
||||
#include <spa/utils/hook.h>
|
||||
#include <spa/utils/dict.h>
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ SPA_EXPORT
|
|||
int pw_data_loop_start(struct pw_data_loop *loop)
|
||||
{
|
||||
if (!loop->running) {
|
||||
struct pw_thread *thr;
|
||||
struct spa_thread *thr;
|
||||
|
||||
loop->running = true;
|
||||
thr = pw_thread_utils_create(NULL, do_loop, loop);
|
||||
|
|
@ -238,7 +238,7 @@ int pw_data_loop_stop(struct pw_data_loop *loop)
|
|||
pthread_cancel(loop->thread);
|
||||
}
|
||||
pw_log_debug(NAME": %p join", loop);
|
||||
pw_thread_utils_join((struct pw_thread*)loop->thread, NULL);
|
||||
pw_thread_utils_join((struct spa_thread*)loop->thread, NULL);
|
||||
pw_log_debug(NAME": %p joined", loop);
|
||||
}
|
||||
pw_log_debug(NAME": %p stopped", loop);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue