diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2019-06-28 17:29:49 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2019-06-28 17:31:49 +0300 |
commit | 89d96fa77eb7bbb6bc5258f54df2878a24b34850 (patch) | |
tree | d1514400e88537da8e4be937b5db011f1738974e /binding | |
parent | 6b65b2855929190135e8498f5511e9cf8e7a0c26 (diff) |
audiomixer: use pipewire's debug system in the audiomixer thread
Because the binder doesn't like printing messages with its own
mechanism from other threads.
Change-Id: I6fac81fc6de58f7cbbf2f93b9795c0833e44d85c
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Diffstat (limited to 'binding')
-rw-r--r-- | binding/CMakeLists.txt | 1 | ||||
-rw-r--r-- | binding/audiomixer.c | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/binding/CMakeLists.txt b/binding/CMakeLists.txt index 587d137..c199ad2 100644 --- a/binding/CMakeLists.txt +++ b/binding/CMakeLists.txt @@ -1,7 +1,6 @@ PROJECT_TARGET_ADD(audiomixer-binding) add_definitions(-DAFB_BINDING_VERSION=3) - add_definitions(-DBUILDING_APPFW_BINDING) set(audiomixer_SOURCES audiomixer-binding.c diff --git a/binding/audiomixer.c b/binding/audiomixer.c index 85ecfc0..91255d5 100644 --- a/binding/audiomixer.c +++ b/binding/audiomixer.c @@ -10,12 +10,7 @@ #include <pipewire/array.h> #include <pipewire/extensions/endpoint.h> -#if !defined(BUILDING_APPFW_BINDING) -#define debug(...) fprintf(stdout, __VA_ARGS__) -#else -#include <afb/afb-binding.h> -#define debug(...) AFB_DEBUG(__VA_ARGS__) -#endif +#define debug(...) pw_log_debug(__VA_ARGS__) struct audiomixer { |