summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaDecoderStateMachine.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /dom/media/MediaDecoderStateMachine.h
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/MediaDecoderStateMachine.h')
-rw-r--r--dom/media/MediaDecoderStateMachine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/media/MediaDecoderStateMachine.h b/dom/media/MediaDecoderStateMachine.h
index bcedf1790a..aa7919aa23 100644
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -17,6 +17,7 @@
# include "MediaStatistics.h"
# include "MediaTimer.h"
# include "SeekJob.h"
+# include "mozilla/Atomics.h"
# include "mozilla/Attributes.h"
# include "mozilla/ReentrantMonitor.h"
# include "mozilla/StateMirroring.h"
@@ -530,6 +531,9 @@ class MediaDecoderStateMachine
// logic until the media loops back.
bool mBypassingSkipToNextKeyFrameCheck = false;
+ // The total amount of time we've spent on the buffering state.
+ TimeDuration mTotalBufferingDuration;
+
private:
// Audio stream name
Mirror<nsAutoString> mStreamName;
@@ -559,6 +563,8 @@ class MediaDecoderStateMachine
// after Initialization. TaskQueue thread only.
bool mIsMediaSinkSuspended = false;
+ Atomic<bool> mShuttingDown;
+
public:
AbstractCanonical<PrincipalHandle>* CanonicalOutputPrincipal() {
return &mCanonicalOutputPrincipal;