diff options
author | wm4 <wm4@nowhere> | 2014-04-27 22:16:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-27 22:16:56 +0200 |
commit | b20416abe3f7e15d27a9828c12171e65f6e62d9c (patch) | |
tree | c4a94028da4f91ce15d616dcac6654f82ae0a197 /video | |
parent | 9e47bd11cc97074e5f8626832333a448e67bae88 (diff) | |
download | mpv-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.c | 4 |
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); |