mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1120014 - Initialize MediaSourceReader::mLast{Audio,Video}Time to 0 rather than -1. r=rillian
There isn't actually any initialization code that sets them at 0. Instead, we currently rely on the fact that our first decoder ends up active regardless of what its buffered range reports. So as long as invoking the first Request{Audio,Video}Data is resolved, this ends up ok. But while that is usually the case, it isn't _always_ the case, especially in the case where the MP4Reader rejects with WAITING_FOR_DATA.
This commit is contained in:
parent
2a29797035
commit
bd84ed942f
@ -46,8 +46,8 @@ namespace mozilla {
|
||||
|
||||
MediaSourceReader::MediaSourceReader(MediaSourceDecoder* aDecoder)
|
||||
: MediaDecoderReader(aDecoder)
|
||||
, mLastAudioTime(-1)
|
||||
, mLastVideoTime(-1)
|
||||
, mLastAudioTime(0)
|
||||
, mLastVideoTime(0)
|
||||
, mPendingSeekTime(-1)
|
||||
, mPendingStartTime(-1)
|
||||
, mPendingEndTime(-1)
|
||||
|
Loading…
Reference in New Issue
Block a user