added setting for fast seeking

This commit is contained in:
itsmattkc
2018-12-17 21:12:51 +11:00
parent a9b8908988
commit 302310ab7b
5 changed files with 45 additions and 3 deletions
+2 -1
View File
@@ -11,6 +11,7 @@
#include "project/effect.h"
#include "panels/effectcontrols.h"
#include "project/media.h"
#include "io/config.h"
#include "debug.h"
extern "C" {
@@ -193,7 +194,7 @@ void get_clip_frame(Clip* c, long playhead) {
#ifdef GCF_DEBUG
dout << "GCF ==> RESET" << target_pts << "(" << target_frame->pts << "-" << target_frame->pts+target_frame->pkt_duration << ")";
#endif
target_frame = NULL;
if (!config.fast_seeking) target_frame = NULL;
reset = true;
c->last_invalid_ts = target_pts;
} else {