mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 968016 - Call MediaDecoderReader::OnDecodeThreadStart/Finish() in DecodeLoop(). r=kinetik
This commit is contained in:
parent
a2cc5e0b6f
commit
81814d397d
@ -281,6 +281,10 @@ void MediaDecoderStateMachine::DecodeThreadRun()
|
||||
{
|
||||
ReentrantMonitorAutoEnter mon(mDecoder->GetReentrantMonitor());
|
||||
|
||||
if (mReader) {
|
||||
mReader->OnDecodeThreadStart();
|
||||
}
|
||||
|
||||
if (mState == DECODER_STATE_DECODING_METADATA &&
|
||||
NS_FAILED(DecodeMetadata())) {
|
||||
NS_ASSERTION(mState == DECODER_STATE_SHUTDOWN,
|
||||
@ -315,6 +319,10 @@ void MediaDecoderStateMachine::DecodeThreadRun()
|
||||
}
|
||||
}
|
||||
|
||||
if (mReader) {
|
||||
mReader->OnDecodeThreadFinish();
|
||||
}
|
||||
|
||||
DECODER_LOG(PR_LOG_DEBUG, ("%p Decode thread finished", mDecoder.get()));
|
||||
mDispatchedEventToDecode = false;
|
||||
mon.NotifyAll();
|
||||
|
Loading…
Reference in New Issue
Block a user