mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1182738. Part 2 - remove MediaDecoderStateMachine::mStreamStartTime.
This commit is contained in:
parent
3f12b46ee5
commit
b728993958
@ -212,7 +212,6 @@ MediaDecoderStateMachine::MediaDecoderStateMachine(MediaDecoder* aDecoder,
|
||||
mFragmentEndTime(-1),
|
||||
mReader(aReader),
|
||||
mCurrentPosition(mTaskQueue, 0, "MediaDecoderStateMachine::mCurrentPosition (Canonical)"),
|
||||
mStreamStartTime(0),
|
||||
mAudioEndTime(-1),
|
||||
mDecodedAudioEndTime(-1),
|
||||
mVideoFrameEndTime(-1),
|
||||
@ -2150,7 +2149,6 @@ MediaDecoderStateMachine::SeekCompleted()
|
||||
} else {
|
||||
newCurrentTime = video ? video->mTime : seekTime;
|
||||
}
|
||||
mStreamStartTime = newCurrentTime;
|
||||
mPlayDuration = newCurrentTime;
|
||||
|
||||
mDecoder->StartProgressUpdates();
|
||||
@ -2471,7 +2469,6 @@ MediaDecoderStateMachine::Reset()
|
||||
|
||||
mVideoFrameEndTime = -1;
|
||||
mDecodedVideoEndTime = -1;
|
||||
mStreamStartTime = 0;
|
||||
mAudioEndTime = -1;
|
||||
mDecodedAudioEndTime = -1;
|
||||
mAudioCompleted = false;
|
||||
@ -3142,7 +3139,6 @@ void MediaDecoderStateMachine::DispatchAudioCaptured()
|
||||
if (!self->mAudioCaptured) {
|
||||
// Stop the audio sink if it's running.
|
||||
self->StopAudioThread();
|
||||
self->mStreamStartTime = self->GetMediaTime();
|
||||
// Reset mAudioEndTime which will be updated as we send audio data to
|
||||
// stream. Otherwise it will remain -1 if we don't have audio.
|
||||
self->mAudioEndTime = -1;
|
||||
|
@ -1066,10 +1066,6 @@ protected:
|
||||
public:
|
||||
AbstractCanonical<int64_t>* CanonicalCurrentPosition() { return &mCurrentPosition; }
|
||||
protected:
|
||||
// The presentation time of the first audio/video frame that is sent to the
|
||||
// media stream.
|
||||
int64_t mStreamStartTime;
|
||||
|
||||
// The end time of the last audio frame that's been pushed onto the audio
|
||||
// hardware in microseconds. This will approximately be the end time of the
|
||||
// audio stream, unless another frame is pushed to the hardware.
|
||||
|
Loading…
Reference in New Issue
Block a user