mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1062116 - MediaDecoderStateMachine::FlushDecoding() should call AssertCurrentThreadInMonitor(). r=kinetik
This commit is contained in:
parent
0bc3d69f96
commit
a66ed73190
@ -1450,6 +1450,7 @@ void MediaDecoderStateMachine::Play()
|
||||
|
||||
void MediaDecoderStateMachine::ResetPlayback()
|
||||
{
|
||||
AssertCurrentThreadInMonitor();
|
||||
MOZ_ASSERT(mState == DECODER_STATE_SEEKING ||
|
||||
mState == DECODER_STATE_SHUTDOWN ||
|
||||
mState == DECODER_STATE_DORMANT);
|
||||
@ -2485,7 +2486,7 @@ MediaDecoderStateMachine::FlushDecoding()
|
||||
{
|
||||
NS_ASSERTION(OnStateMachineThread() || OnDecodeThread(),
|
||||
"Should be on state machine or decode thread.");
|
||||
mDecoder->GetReentrantMonitor().AssertNotCurrentThreadIn();
|
||||
AssertCurrentThreadInMonitor();
|
||||
|
||||
{
|
||||
// Put a task in the decode queue to abort any decoding operations.
|
||||
|
Loading…
Reference in New Issue
Block a user