pipewire: Use a more specific stream name than "Audio Stream".

This info shows up in `pw-top` ...Gnome's sound preferences (etc) would
already show something more app-specific, but this command line tool shows
specific stream names.
This commit is contained in:
Ryan C. Gordon 2025-04-25 12:53:22 -04:00
parent 2767c1a440
commit a9bee3c0bf
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 7 additions and 1 deletions

View File

@ -1114,7 +1114,13 @@ static bool PIPEWIRE_OpenDevice(SDL_AudioDevice *device)
stream_name = SDL_GetHint(SDL_HINT_AUDIO_DEVICE_STREAM_NAME);
if (!stream_name || *stream_name == '\0') {
stream_name = "Audio Stream";
if (app_name) {
stream_name = app_name;
} else if (app_id) {
stream_name = app_id;
} else {
stream_name = "SDL Audio Stream";
}
}
/*