From b0cdc2b0ab623be1841ba4b60d1755f5bf706283 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 12 Dec 2019 15:23:25 -0800 Subject: radio: check for corking from PipeWire 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 --- binding/radio-binding.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'binding/radio-binding.c') diff --git a/binding/radio-binding.c b/binding/radio-binding.c index 72f36ff..0de45a6 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; -- cgit 1.2.3-korg