Bug 1891709 - Don't warn when failing to set the stream name when using a backend in which it's not supported. r=media-playback-reviewers,karlt

Differential Revision: https://phabricator.services.mozilla.com/D207543
This commit is contained in:
Paul Adenot 2024-04-22 13:54:05 +00:00
parent ad23630d00
commit 89391d0f42

View File

@ -316,7 +316,8 @@ void AudioStream::SetStreamName(const nsAString& aStreamName) {
}
MonitorAutoLock mon(mMonitor);
if (InvokeCubeb(cubeb_stream_set_name, aRawStreamName.get()) != CUBEB_OK) {
int r = InvokeCubeb(cubeb_stream_set_name, aRawStreamName.get());
if (r && r != CUBEB_ERROR_NOT_SUPPORTED) {
LOGE("Could not set cubeb stream name.");
}
}