summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-27 22:16:56 +0200
committerwm4 <wm4@nowhere>2014-04-27 22:16:56 +0200
commitb20416abe3f7e15d27a9828c12171e65f6e62d9c (patch)
treec4a94028da4f91ce15d616dcac6654f82ae0a197 /video
parent9e47bd11cc97074e5f8626832333a448e67bae88 (diff)
downloadmpv-b20416abe3f7e15d27a9828c12171e65f6e62d9c.tar.bz2
mpv-b20416abe3f7e15d27a9828c12171e65f6e62d9c.tar.xz
vf_vapoursynth: use official AbsoluteTime property
I thought the "_" in "_AbsoluteTime" was part of the documentation markup. This still doesn't help us with VS filters that change timing; apparently you must use frame durations instead.
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf_vapoursynth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index f7382e9678..313b66e26b 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -156,7 +156,7 @@ static void VS_CC vs_frame_done(void *userData, const VSFrameRef *f, int n,
const VSMap *map = p->vsapi->getFramePropsRO(f);
if (map) {
int err;
- double t = p->vsapi->propGetFloat(map, "AbsoluteTime", 0, &err);
+ double t = p->vsapi->propGetFloat(map, "_AbsoluteTime", 0, &err);
if (!err)
img.pts = t;
}
@@ -283,7 +283,7 @@ static const VSFrameRef *VS_CC infiltGetFrame(int frameno, int activationReason,
mp_image_copy(&vsframe, img);
VSMap *map = p->vsapi->getFramePropsRW(ret);
if (map)
- p->vsapi->propSetFloat(map, "AbsoluteTime", img->pts, 0);
+ p->vsapi->propSetFloat(map, "_AbsoluteTime", img->pts, 0);
break;
}
pthread_cond_wait(&p->wakeup, &p->lock);