transport: Fix broadcast sink check
authorVlad Pruteanu <vlad.pruteanu@nxp.com>
Thu, 5 Sep 2024 14:13:40 +0000 (17:13 +0300)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 20 Feb 2025 07:43:22 +0000 (16:43 +0900)
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.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
profiles/audio/transport.c

index 09674c9186225d7530a9d6c0c3fbe35f280da873..814ed670676d2e192ab96bf653b7af18f6bfac22 100644 (file)
@@ -1427,7 +1427,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))