summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/lvpp/PreviewPlayer.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-02-08 13:12:32 -0800
committerAndreas Huber <andih@google.com>2011-02-08 13:12:32 -0800
commit9e4c36a044e264c644d7fa9f9894659a6fc47a6f (patch)
tree75995fae3ae4577d8ef9e3498ff37dc4958761bc /libvideoeditor/lvpp/PreviewPlayer.cpp
parent9f57f820affa668c3c710920049c18ce406e2a12 (diff)
downloadframeworks_av-9e4c36a044e264c644d7fa9f9894659a6fc47a6f.zip
frameworks_av-9e4c36a044e264c644d7fa9f9894659a6fc47a6f.tar.gz
frameworks_av-9e4c36a044e264c644d7fa9f9894659a6fc47a6f.tar.bz2
This copy of our internal code does not handle seek-preview while paused well.
disabling that functionality. Change-Id: Ie1d2bda6866e3754fb6237ab827c3c93a38104d8 related-to-bug: 3427268
Diffstat (limited to 'libvideoeditor/lvpp/PreviewPlayer.cpp')
-rw-r--r--libvideoeditor/lvpp/PreviewPlayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvideoeditor/lvpp/PreviewPlayer.cpp b/libvideoeditor/lvpp/PreviewPlayer.cpp
index ca025d0..23a01bb 100644
--- a/libvideoeditor/lvpp/PreviewPlayer.cpp
+++ b/libvideoeditor/lvpp/PreviewPlayer.cpp
@@ -736,6 +736,11 @@ void PreviewPlayer::onVideoEvent() {
}
mVideoEventPending = false;
+ if (mFlags & SEEK_PREVIEW) {
+ mFlags &= ~SEEK_PREVIEW;
+ return;
+ }
+
TimeSource *ts_st = &mSystemTimeSource;
int64_t timeStartUs = ts_st->getRealTimeUs();