summaryrefslogtreecommitdiffstats
path: root/dom/media/mediacapabilities/MediaCapabilities.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/media/mediacapabilities/MediaCapabilities.cpp
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/mediacapabilities/MediaCapabilities.cpp')
-rw-r--r--dom/media/mediacapabilities/MediaCapabilities.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/dom/media/mediacapabilities/MediaCapabilities.cpp b/dom/media/mediacapabilities/MediaCapabilities.cpp
index abc83dae4d..d3123f913b 100644
--- a/dom/media/mediacapabilities/MediaCapabilities.cpp
+++ b/dom/media/mediacapabilities/MediaCapabilities.cpp
@@ -45,21 +45,6 @@ static nsCString VideoConfigurationToStr(const VideoConfiguration* aConfig) {
return nsCString();
}
- nsCString hdrMetaType(
- aConfig->mHdrMetadataType.WasPassed()
- ? HdrMetadataTypeValues::GetString(aConfig->mHdrMetadataType.Value())
- : "?");
-
- nsCString colorGamut(
- aConfig->mColorGamut.WasPassed()
- ? ColorGamutValues::GetString(aConfig->mColorGamut.Value())
- : "?");
-
- nsCString transferFunction(aConfig->mTransferFunction.WasPassed()
- ? TransferFunctionValues::GetString(
- aConfig->mTransferFunction.Value())
- : "?");
-
auto str = nsPrintfCString(
"[contentType:%s width:%d height:%d bitrate:%" PRIu64
" framerate:%lf hasAlphaChannel:%s hdrMetadataType:%s colorGamut:%s "
@@ -69,7 +54,15 @@ static nsCString VideoConfigurationToStr(const VideoConfiguration* aConfig) {
aConfig->mHasAlphaChannel.WasPassed()
? aConfig->mHasAlphaChannel.Value() ? "true" : "false"
: "?",
- hdrMetaType.get(), colorGamut.get(), transferFunction.get(),
+ aConfig->mHdrMetadataType.WasPassed()
+ ? GetEnumString(aConfig->mHdrMetadataType.Value()).get()
+ : "?",
+ aConfig->mColorGamut.WasPassed()
+ ? GetEnumString(aConfig->mColorGamut.Value()).get()
+ : "?",
+ aConfig->mTransferFunction.WasPassed()
+ ? GetEnumString(aConfig->mTransferFunction.Value()).get()
+ : "?",
aConfig->mScalabilityMode.WasPassed()
? NS_ConvertUTF16toUTF8(aConfig->mScalabilityMode.Value()).get()
: "?");