diff options
author | wm4 <wm4@nowhere> | 2014-10-11 18:15:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-11 18:15:38 +0200 |
commit | 54e2ca809cb3312385f5ed017ec91ee8bb232742 (patch) | |
tree | d35b141c44ea035f64ae2c51bcca9915aa26484e /video | |
parent | cea7528b397d674711d68d0f11603891630afa7d (diff) | |
download | mpv-54e2ca809cb3312385f5ed017ec91ee8bb232742.tar.bz2 mpv-54e2ca809cb3312385f5ed017ec91ee8bb232742.tar.xz |
vf_vapoursynth: when seeking, recreate only if it's already created
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index 5d228caa50..ecab4c1f1e 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -617,9 +617,10 @@ static int query_format(struct vf_instance *vf, unsigned int fmt) static int control(vf_instance_t *vf, int request, void *data) { + struct vf_priv_s *p = vf->priv; switch (request) { case VFCTRL_SEEK_RESET: - if (reinit_vs(vf) < 0) + if (p->out_node && reinit_vs(vf) < 0) return CONTROL_ERROR; return CONTROL_OK; } |