mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1125776: Part7. Only notify reader we have data, when we actually do. r=mattwoodrow
This commit is contained in:
parent
04f33309e6
commit
fdf83c97db
@ -243,11 +243,11 @@ TrackBuffer::AppendData(LargeDataBuffer* aData, int64_t aTimestampOffset)
|
|||||||
// We're going to have to wait for the decoder to initialize, the promise
|
// We're going to have to wait for the decoder to initialize, the promise
|
||||||
// will be resolved once initialization completes.
|
// will be resolved once initialization completes.
|
||||||
return p;
|
return p;
|
||||||
|
} else if (gotMedia) {
|
||||||
|
// Tell our reader that we have more data to ensure that playback starts if
|
||||||
|
// required when data is appended.
|
||||||
|
mParentDecoder->GetReader()->MaybeNotifyHaveData();
|
||||||
}
|
}
|
||||||
// Tell our reader that we have more data to ensure that playback starts if
|
|
||||||
// required when data is appended.
|
|
||||||
mParentDecoder->GetReader()->MaybeNotifyHaveData();
|
|
||||||
|
|
||||||
mInitializationPromise.Resolve(gotMedia, __func__);
|
mInitializationPromise.Resolve(gotMedia, __func__);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user