From 54866cee3fad31880047ba81dbb12746186522cb Mon Sep 17 00:00:00 2001 From: Vlad Pruteanu Date: Thu, 5 Sep 2024 17:13:40 +0300 Subject: [PATCH] transport: Fix broadcast sink check In transport_update_playing a check is performed to guard the path which contains the TRANSPORT_STATE_BROADCASTING state. This branch should be taken only when the device on which the code runs is a broadcast sink. Thus, the UUID check is wrong, and this patch updates it appropriately. --- profiles/audio/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index c4b6ce7e3..caa7287db 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -1336,7 +1336,7 @@ static void transport_update_playing(struct media_transport *transport, if (playing == FALSE) { if (!strcmp(media_endpoint_get_uuid(transport->endpoint), - BCAA_SERVICE_UUID)) { + BAA_SERVICE_UUID)) { if ((transport->state == TRANSPORT_STATE_BROADCASTING) || (transport->state == TRANSPORT_STATE_ACTIVE)) -- 2.47.3