Fix source name not being used (#2036)

This commit is contained in:
toasted-nutbread 2021-12-14 22:03:34 -05:00 committed by GitHub
parent ecbbfa39a2
commit fced59a213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ class DisplayAudio {
if (valid) { if (valid) {
({audio, source, subIndex} = info); ({audio, source, subIndex} = info);
const sourceIndex = sources.indexOf(source); const sourceIndex = sources.indexOf(source);
title = `From source ${1 + sourceIndex}: ${source}`; title = `From source ${1 + sourceIndex}: ${source.name}`;
} else { } else {
audio = this._audioSystem.getFallbackAudio(); audio = this._audioSystem.getFallbackAudio();
title = 'Could not find audio'; title = 'Could not find audio';