summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/lvpp
diff options
context:
space:
mode:
authorSantosh Madhava <smadhava@google.com>2011-03-01 21:31:04 -0800
committerSantosh Madhava <smadhava@google.com>2011-03-01 21:31:04 -0800
commitfe288aa71450ebe04eb74d06a3ea887c6009aacb (patch)
tree41fc0b32a21c36880e99b2cab5852486de736d20 /libvideoeditor/lvpp
parent408e25b2508d97f7ae0b39acf46ab42b7c223c44 (diff)
downloadframeworks_av-fe288aa71450ebe04eb74d06a3ea887c6009aacb.zip
frameworks_av-fe288aa71450ebe04eb74d06a3ea887c6009aacb.tar.gz
frameworks_av-fe288aa71450ebe04eb74d06a3ea887c6009aacb.tar.bz2
Fix for issue 3495914: (In Preview) Video clip switches between start and end
Change-Id: Ib11c069127b3e81cfc741fab5a4f05a21d382c6b
Diffstat (limited to 'libvideoeditor/lvpp')
-rw-r--r--libvideoeditor/lvpp/PreviewPlayer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvideoeditor/lvpp/PreviewPlayer.cpp b/libvideoeditor/lvpp/PreviewPlayer.cpp
index 821c8de..e655daa 100644
--- a/libvideoeditor/lvpp/PreviewPlayer.cpp
+++ b/libvideoeditor/lvpp/PreviewPlayer.cpp
@@ -1120,6 +1120,8 @@ void PreviewPlayer::onVideoEvent() {
mFlags |= AUDIO_AT_EOS;
LOGV("PreviewPlayer: onVideoEvent timeUs > mPlayEndTime; send EOS..");
mOverlayUpdateEventPosted = false;
+ // Set the last decoded timestamp to duration
+ mDecodedVideoTs = (mPlayEndTimeMsec*1000);
postStreamDoneEvent_l(ERROR_END_OF_STREAM);
return;
}
@@ -1238,6 +1240,8 @@ void PreviewPlayer::onVideoEvent() {
mFlags |= VIDEO_AT_EOS;
mFlags |= AUDIO_AT_EOS;
mOverlayUpdateEventPosted = false;
+ // Set the last decoded timestamp to duration
+ mDecodedVideoTs = (mPlayEndTimeMsec*1000);
postStreamDoneEvent_l(ERROR_END_OF_STREAM);
}
else {