Skip to content

Instantly share code, notes, and snippets.

@nhirata
Created June 18, 2015 03:34
Show Gist options
  • Save nhirata/0a896284af3645ae75f8 to your computer and use it in GitHub Desktop.
Save nhirata/0a896284af3645ae75f8 to your computer and use it in GitHub Desktop.
@@ -2309,22 +2311,22 @@ MediaDecoderStateMachine::DecodeFirstFrame()
->Then(TaskQueue(), __func__, this,
&MediaDecoderStateMachine::OnAudioDecoded,
&MediaDecoderStateMachine::OnAudioNotDecoded)
);
}
if (HasVideo()) {
mVideoDecodeStartTime = TimeStamp::Now();
mVideoDataRequest.Begin(
ProxyMediaCall(DecodeTaskQueue(), mReader.get(), __func__,
- &MediaDecoderReader::RequestVideoData, false, int64_t(0))
+ &MediaDecoderReader::RequestVideoData, false, int64_t(0), false)
->Then(TaskQueue(), __func__, mStartTimeRendezvous.get(),
&StartTimeRendezvous::ProcessFirstSample<VideoDataPromise>,
&StartTimeRendezvous::FirstSampleRejected<VideoData>)
->CompletionPromise()
->Then(TaskQueue(), __func__, this,
&MediaDecoderStateMachine::OnVideoDecoded,
&MediaDecoderStateMachine::OnVideoNotDecoded));
}
}
return NS_OK;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment