From 45543efa4c1c79411d4e88e010cd4ddf24ef21ba Mon Sep 17 00:00:00 2001 From: wang-bin Date: Sun, 8 Dec 2013 14:11:25 +0800 Subject: [PATCH] enlarge acceptable delay --- src/AudioThread.cpp | 2 +- src/VideoThread.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AudioThread.cpp b/src/AudioThread.cpp index 0028f14c..fb727488 100644 --- a/src/AudioThread.cpp +++ b/src/AudioThread.cpp @@ -102,7 +102,7 @@ void AudioThread::run() *TODO: 1. how to choose the value * 2. use last delay when seeking */ - if (qAbs(d.delay) < 1) { + if (qAbs(d.delay) < 2.718) { if (d.delay < -kSyncThreshold) { //Speed up. drop frame? //continue; } diff --git a/src/VideoThread.cpp b/src/VideoThread.cpp index 9667018e..34577d72 100644 --- a/src/VideoThread.cpp +++ b/src/VideoThread.cpp @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -127,7 +126,7 @@ void VideoThread::run() * 2. use last delay when seeking */ bool skip_render = false; - if (qAbs(d.delay) < 1) { + if (qAbs(d.delay) < 2.718) { if (d.delay < -kSyncThreshold) { //Speed up. drop frame? //continue; }