Sound(Linux): Treat default port as always active

This fixes no shown sound devices when no audio is currently played
This commit is contained in:
Linus Dierheimer
2023-01-26 17:25:14 +01:00
parent 7adb1606f1
commit 33f3744a63
+1
View File
@@ -31,6 +31,7 @@ static void paServerInfoCallback(pa_context *c, const pa_server_info *i, void *u
if(ffStrbufEqualS(&device->manufacturer, i->default_sink_name))
{
device->main = true;
device->active = true; // Treat the default sink as always active
break;
}
}