From dc8a7b8b59675e170e87df7ce40fe82c69a8d540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lang=C3=A9?= Date: Thu, 19 Nov 2020 21:58:50 +0100 Subject: [PATCH] Fix parsing of audio codecs --- src/ctl/wfd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ctl/wfd.c b/src/ctl/wfd.c index 651c52e2..319d3906 100644 --- a/src/ctl/wfd.c +++ b/src/ctl/wfd.c @@ -640,10 +640,7 @@ int wfd_audio_codecs_from_string(const char *l, return r; } - l += 16; - if(WFD_AUDIO_FORMAT_LPCM == c->caps[i].format) { - ++ l; - } + l = strchr(l, ',') + 1; free(f); f = NULL;