mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1211443 - Drop scheduled update if decoder initialization isn't done yet. r=jya
This commit is contained in:
parent
74e1e7441b
commit
7f2045a065
@ -1047,7 +1047,7 @@ MediaFormatReader::Update(TrackType aTrack)
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
if (mShutdown || !mInitDone) {
|
||||
if (mShutdown) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1058,6 +1058,10 @@ MediaFormatReader::Update(TrackType aTrack)
|
||||
auto& decoder = GetDecoderData(aTrack);
|
||||
decoder.mUpdateScheduled = false;
|
||||
|
||||
if (!mInitDone) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (UpdateReceivedNewData(aTrack)) {
|
||||
LOGV("Nothing more to do");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user