mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1126465 - Stop invoking On*NotDecoded when we didn't actually go through the promise. r=mattwoodrow
This isn't right, and it means that we can't assume at the top of On{Audio,Video}{,Not}Decoded() that we're fresh out of promise dispatch, which we want to do.
This commit is contained in:
parent
cd041af404
commit
1ced738e43
@ -156,7 +156,7 @@ MediaSourceReader::RequestAudioDataComplete(int64_t aTime)
|
||||
void
|
||||
MediaSourceReader::RequestAudioDataFailed(nsresult aResult)
|
||||
{
|
||||
OnAudioNotDecoded(DECODE_ERROR);
|
||||
mAudioPromise.Reject(DECODE_ERROR, __func__);
|
||||
}
|
||||
|
||||
void
|
||||
@ -299,7 +299,7 @@ MediaSourceReader::RequestVideoDataComplete(int64_t aTime)
|
||||
void
|
||||
MediaSourceReader::RequestVideoDataFailed(nsresult aResult)
|
||||
{
|
||||
OnVideoNotDecoded(DECODE_ERROR);
|
||||
mVideoPromise.Reject(DECODE_ERROR, __func__);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user