0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vf_vapoursynth: when seeking, recreate only if it's already created

This commit is contained in:
wm4 2014-10-11 18:15:38 +02:00
parent cea7528b39
commit 54e2ca809c

View File

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