alsa: fix version check

See #3711
This commit is contained in:
Wim Taymans 2024-02-01 21:42:07 +01:00
parent d7e48f3042
commit 16479acc60

View file

@ -1303,7 +1303,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(pipewire)
int err;
pw_init(NULL, NULL);
if (strstr(pw_get_library_version(), "0.2") != NULL)
if (spa_strstartswith(pw_get_library_version(), "0.2"))
return -ENOTSUP;
props = pw_properties_new(NULL, NULL);