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; }