diff options
author | Moonchild <moonchild@palemoon.org> | 2022-02-10 10:48:24 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-30 08:25:48 +0000 |
commit | ea3642103fe40fbecac971d8fa89795f61a513a8 (patch) | |
tree | 9a3c6b7c2fc20cd3f0aafbfa89a21948598344b2 /dom/media | |
parent | e591cf1e1af42b8d6bd20cd84d9aec9f06a29b86 (diff) | |
download | uxp-ea3642103fe40fbecac971d8fa89795f61a513a8.tar.gz |
[DOM media] Add a lock around Reset() in WebMBufferedParser
Diffstat (limited to 'dom/media')
-rw-r--r-- | dom/media/webm/WebMBufferedParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/media/webm/WebMBufferedParser.cpp b/dom/media/webm/WebMBufferedParser.cpp index 979308cf0c..c3f1266cca 100644 --- a/dom/media/webm/WebMBufferedParser.cpp +++ b/dom/media/webm/WebMBufferedParser.cpp @@ -425,6 +425,7 @@ void WebMBufferedState::NotifyDataArrived(const unsigned char* aBuffer, uint32_t } void WebMBufferedState::Reset() { + ReentrantMonitorAutoEnter mon(mReentrantMonitor); mRangeParsers.Clear(); mTimeMapping.Clear(); } |