summaryrefslogtreecommitdiffstats
path: root/binding/radio-binding.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-12-12 15:23:25 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-12-14 11:49:08 -0800
commit77b59fd16b1506803aec40c9999fc9890bae83d2 (patch)
tree09a92ac76aba19e2284a0d7ea26c0474a2d0c066 /binding/radio-binding.c
parentbcfa8087eafcf4d96fc70eaa10afdce4dcfd3655 (diff)
radio: check for corking from PipeWireicefish_8.99.3icefish/8.99.38.99.3
Check if PipeWire is corking the audio stream and if so don't process signal-composer events till uncorked Bug-AGL: SPEC-3023 Change-Id: I1a4623022bbe28658bc97b5fe0cda58863f20d8c Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/radio-binding.c')
-rw-r--r--binding/radio-binding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/radio-binding.c b/binding/radio-binding.c
index de89207..e736b2f 100644
--- a/binding/radio-binding.c
+++ b/binding/radio-binding.c
@@ -522,6 +522,10 @@ static void onevent(afb_api_t api, const char *event, struct json_object *object
if (strncmp(uid, "event.media.", 12))
return;
+ if (radio_impl_ops->get_corking_state &&
+ radio_impl_ops->get_corking_state())
+ return;
+
json_object_object_get_ex(object, "value", &tmp);
if (tmp == NULL)
return;