diff options
author | Dharmaray Kundargi <dharmaray@google.com> | 2011-02-01 19:16:43 -0800 |
---|---|---|
committer | Dharmaray Kundargi <dharmaray@google.com> | 2011-02-01 20:20:02 -0800 |
commit | 4f155f0cffa2414545854e899dff4861187e1f68 (patch) | |
tree | 3330070c80436b361f24f4f7b3b28e19cbc87b7a /libvideoeditor/lvpp/PreviewPlayer.cpp | |
parent | aae29543bd55d383285a103e37e86afd18068fcd (diff) | |
download | frameworks_av-4f155f0cffa2414545854e899dff4861187e1f68.zip frameworks_av-4f155f0cffa2414545854e899dff4861187e1f68.tar.gz frameworks_av-4f155f0cffa2414545854e899dff4861187e1f68.tar.bz2 |
Fix Issue Crash during Export Issue 3414805 , and Preview smoothning for 720p Clips
Change-Id: I5a90fc350a33c1eca9b4ec682b68b80913578341
Diffstat (limited to 'libvideoeditor/lvpp/PreviewPlayer.cpp')
-rw-r--r-- | libvideoeditor/lvpp/PreviewPlayer.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libvideoeditor/lvpp/PreviewPlayer.cpp b/libvideoeditor/lvpp/PreviewPlayer.cpp index 49f50cb..59e9bce 100644 --- a/libvideoeditor/lvpp/PreviewPlayer.cpp +++ b/libvideoeditor/lvpp/PreviewPlayer.cpp @@ -858,16 +858,15 @@ void PreviewPlayer::onVideoEvent() { mVideoBuffer->release(); mVideoBuffer = NULL; - - postVideoEvent_l(); + postVideoEvent_l(0); return; } - if (latenessUs < -10000) { - // We're more than 10ms early. - LOGV("We're more than 10ms early, lateness %lld", latenessUs); + if (latenessUs < -25000) { + // We're more than 25ms early. + LOGV("We're more than 25ms early, lateness %lld", latenessUs); - postVideoEvent_l(10000); + postVideoEvent_l(25000); return; } } @@ -1018,7 +1017,7 @@ void PreviewPlayer::onVideoEvent() { } else { if(!mIsVideoSourceJpg) { - postVideoEvent_l(); + postVideoEvent_l(0); } else { postVideoEvent_l(33000); |