mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pipewire: module-rt: have just one impl_thread_utils
There are two definitions depending on `#ifdef HAVE_DBUS`, however, the two definitions are indentical, so remove one.
This commit is contained in:
parent
b124385fac
commit
0923e12fa3
1 changed files with 2 additions and 11 deletions
|
|
@ -858,15 +858,6 @@ static int impl_acquire_rt(void *object, struct spa_thread *thread, int priority
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct spa_thread_utils_methods impl_thread_utils = {
|
|
||||||
SPA_VERSION_THREAD_UTILS_METHODS,
|
|
||||||
.create = impl_create,
|
|
||||||
.join = impl_join,
|
|
||||||
.get_rt_range = impl_get_rt_range,
|
|
||||||
.acquire_rt = impl_acquire_rt,
|
|
||||||
.drop_rt = impl_drop_rt_generic,
|
|
||||||
};
|
|
||||||
|
|
||||||
#else /* HAVE_DBUS */
|
#else /* HAVE_DBUS */
|
||||||
|
|
||||||
static struct spa_thread *impl_create(void *object, const struct spa_dict *props,
|
static struct spa_thread *impl_create(void *object, const struct spa_dict *props,
|
||||||
|
|
@ -897,6 +888,8 @@ static int impl_acquire_rt(void *object, struct spa_thread *thread, int priority
|
||||||
return acquire_rt_sched(thread, priority);
|
return acquire_rt_sched(thread, priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_DBUS */
|
||||||
|
|
||||||
static const struct spa_thread_utils_methods impl_thread_utils = {
|
static const struct spa_thread_utils_methods impl_thread_utils = {
|
||||||
SPA_VERSION_THREAD_UTILS_METHODS,
|
SPA_VERSION_THREAD_UTILS_METHODS,
|
||||||
.create = impl_create,
|
.create = impl_create,
|
||||||
|
|
@ -905,8 +898,6 @@ static const struct spa_thread_utils_methods impl_thread_utils = {
|
||||||
.acquire_rt = impl_acquire_rt,
|
.acquire_rt = impl_acquire_rt,
|
||||||
.drop_rt = impl_drop_rt_generic,
|
.drop_rt = impl_drop_rt_generic,
|
||||||
};
|
};
|
||||||
#endif /* HAVE_DBUS */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_DBUS
|
#ifdef HAVE_DBUS
|
||||||
static bool check_rtkit(struct pw_context *context)
|
static bool check_rtkit(struct pw_context *context)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue