continue;
}
// So video playback is complete, but we may still have
- // a seek request pending that needs to be applied\r // to the audio track.\r if (mSeeking) {\r LOGV("video stream ended while seeking!");\r }\r finishSeekIfNecessary(-1);\r
+ // a seek request pending that needs to be applied to the audio track
+ if (mSeeking) {
+ LOGV("video stream ended while seeking!");
+ }
+ finishSeekIfNecessary(-1);
LOGV("PreviewPlayer: onVideoEvent EOS reached.");
mFlags |= VIDEO_AT_EOS;
+ if (mOverlayUpdateEventPosted) {
+ mOverlayUpdateEventPosted = false;
+ postOverlayUpdateEvent_l();
+ }
postStreamDoneEvent_l(err);
return;
}
int64_t latenessUs = nowUs - timeUs;
if (wasSeeking) {
- // Let's display the first frame after seeking right away.\r latenessUs = 0;\r }\r
+ // Let's display the first frame after seeking right away.
+ latenessUs = 0;
+ }
LOGV("Audio time stamp = %lld and video time stamp = %lld",
ts->getRealTimeUs(),timeUs);
if (latenessUs > 40000) {
LOGV("PreviewPlayer: onVideoEvent EOS.");
mFlags |= VIDEO_AT_EOS;
mFlags |= AUDIO_AT_EOS;
+ if (mOverlayUpdateEventPosted) {
+ mOverlayUpdateEventPosted = false;
+ postOverlayUpdateEvent_l();
+ }
postStreamDoneEvent_l(ERROR_END_OF_STREAM);
}
else {