summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaDevices.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/MediaDevices.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/MediaDevices.cpp')
-rw-r--r--dom/media/MediaDevices.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/dom/media/MediaDevices.cpp b/dom/media/MediaDevices.cpp
index cfbc148337..b312fc1ec3 100644
--- a/dom/media/MediaDevices.cpp
+++ b/dom/media/MediaDevices.cpp
@@ -315,8 +315,6 @@ RefPtr<MediaDeviceSetRefCnt> MediaDevices::FilterExposedDevices(
}
haveDefaultOutput = true;
break;
- case MediaDeviceKind::EndGuard_:
- continue;
// Avoid `default:` so that `-Wswitch` catches missing
// enumerators at compile time.
}
@@ -334,8 +332,6 @@ bool MediaDevices::CanExposeInfo(MediaDeviceKind aKind) const {
case MediaDeviceKind::Audiooutput:
// Assumes caller has used FilterExposedDevices()
return true;
- case MediaDeviceKind::EndGuard_:
- break;
// Avoid `default:` so that `-Wswitch` catches missing enumerators at
// compile time.
}
@@ -550,7 +546,7 @@ already_AddRefed<Promise> MediaDevices::GetDisplayMedia(
// for us.
vc.mMediaSource.Reset();
vc.mMediaSource.Construct().AssignASCII(
- dom::MediaSourceEnumValues::GetString(MediaSourceEnum::Screen));
+ dom::GetEnumString(MediaSourceEnum::Screen));
RefPtr<MediaDevices> self(this);
MediaManager::Get()