Skip to content

Commit

Permalink
undo some dumb formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 3, 2024
1 parent 20094da commit 9e30e97
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions html5/js/MediaSourceUtil.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 Antoine Martin <antoine@xpra.org>
* Copyright (c) 2016-2024 Antoine Martin <antoine@xpra.org>
* Licensed under MPL 2.0
*
*/
Expand Down Expand Up @@ -173,9 +173,7 @@ const MediaSourceUtil = {
}
codecs_supported[codec_option] = codec_string;
} catch (error) {
Utilities.error(
`audio error probing codec '${codec_string}' / '${codec_string}': ${error}`
);
Utilities.error(`audio error probing codec '${codec_string}' / '${codec_string}': ${error}`);
codecs_failed[codec_option] = codec_string;
}
}
Expand Down Expand Up @@ -289,9 +287,7 @@ const MediaSourceUtil = {
get_supported_codecs(mediasource, aurora, ignore_audio_blacklist) {
const codecs_supported = {};
if (mediasource) {
const mediasource_codecs = MediaSourceUtil.getMediaSourceAudioCodecs(
ignore_audio_blacklist
);
const mediasource_codecs = MediaSourceUtil.getMediaSourceAudioCodecs(ignore_audio_blacklist);
for (const codec_option in mediasource_codecs) {
codecs_supported[`mediasource:${codec_option}`] =
MediaSourceConstants.CODEC_DESCRIPTION[codec_option];
Expand All @@ -304,9 +300,7 @@ const MediaSourceUtil = {
//we already have native MediaSource support!
continue;
}
codecs_supported[
`aurora:${codec_option}`
] = `legacy: ${MediaSourceConstants.CODEC_DESCRIPTION[codec_option]}`;
codecs_supported[`aurora:${codec_option}`] = `legacy: ${MediaSourceConstants.CODEC_DESCRIPTION[codec_option]}`;
}
}
return codecs_supported;
Expand Down

0 comments on commit 9e30e97

Please sign in to comment.