Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
UserMediaCaptureManager should remove a source from its map once the …
…source is ended https://bugs.webkit.org/show_bug.cgi?id=198337 Reviewed by Eric Carlson. When the source is stopped, for instance using MediaStreamTrack.stop, remove the source from UserMediaCaptureManager sources map. This makes sure the map will not grow over time. Add an if check to ensure that the source is still there before processing an incoming IPC call. When UIProcess tells us the capture is finished (typically capture failed), remove the entry on WebProcess side as well. * WebProcess/cocoa/UserMediaCaptureManager.cpp: (WebKit::UserMediaCaptureManager::createCaptureSource): (WebKit::UserMediaCaptureManager::sourceStopped): (WebKit::UserMediaCaptureManager::captureFailed): (WebKit::UserMediaCaptureManager::sourceMutedChanged): (WebKit::UserMediaCaptureManager::sourceSettingsChanged): (WebKit::UserMediaCaptureManager::storageChanged): (WebKit::UserMediaCaptureManager::ringBufferFrameBoundsChanged): (WebKit::UserMediaCaptureManager::audioSamplesAvailable): (WebKit::UserMediaCaptureManager::remoteVideoSampleAvailable): (WebKit::UserMediaCaptureManager::sourceEnded): (WebKit::UserMediaCaptureManager::applyConstraintsSucceeded): (WebKit::UserMediaCaptureManager::applyConstraintsFailed): Canonical link: https://commits.webkit.org/212369@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters