Fix Issue Crash during Export Issue 3414805 , and Preview smoothning for 720p Clips
Change-Id: I5a90fc350a33c1eca9b4ec682b68b80913578341
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 @@
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 @@
}
else {
if(!mIsVideoSourceJpg) {
- postVideoEvent_l();
+ postVideoEvent_l(0);
}
else {
postVideoEvent_l(33000);