From 49332eb30f495cf1a5dc83fdffb7ef927ea93d18 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 3 Jul 2020 16:23:17 +0200 Subject: [PATCH] bluez5: handle suspend --- spa/plugins/bluez5/a2dp-source.c | 1 + spa/plugins/bluez5/sco-sink.c | 1 + spa/plugins/bluez5/sco-source.c | 1 + 3 files changed, 3 insertions(+) diff --git a/spa/plugins/bluez5/a2dp-source.c b/spa/plugins/bluez5/a2dp-source.c index 784058ebf..bb5f47962 100644 --- a/spa/plugins/bluez5/a2dp-source.c +++ b/spa/plugins/bluez5/a2dp-source.c @@ -570,6 +570,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman if ((res = do_start(this)) < 0) return res; break; + case SPA_NODE_COMMAND_Suspend: case SPA_NODE_COMMAND_Pause: if ((res = do_stop(this)) < 0) return res; diff --git a/spa/plugins/bluez5/sco-sink.c b/spa/plugins/bluez5/sco-sink.c index ca1a814b2..4b70a82c8 100644 --- a/spa/plugins/bluez5/sco-sink.c +++ b/spa/plugins/bluez5/sco-sink.c @@ -624,6 +624,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman return res; break; case SPA_NODE_COMMAND_Pause: + case SPA_NODE_COMMAND_Suspend: if ((res = do_stop(this)) < 0) return res; break; diff --git a/spa/plugins/bluez5/sco-source.c b/spa/plugins/bluez5/sco-source.c index f0788a273..2c2364244 100644 --- a/spa/plugins/bluez5/sco-source.c +++ b/spa/plugins/bluez5/sco-source.c @@ -521,6 +521,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman return res; break; case SPA_NODE_COMMAND_Pause: + case SPA_NODE_COMMAND_Suspend: if ((res = do_stop(this)) < 0) return res; break;