mirror of https://github.com/mpv-player/mpv
vf_vapoursynth: fix debug output
This commit is contained in:
parent
97604ebcd2
commit
0128579542
|
@ -434,7 +434,7 @@ static void destroy_vs(struct vf_instance *vf)
|
||||||
p->out_pts = MP_NOPTS_VALUE;
|
p->out_pts = MP_NOPTS_VALUE;
|
||||||
p->out_frameno = p->in_frameno = 0;
|
p->out_frameno = p->in_frameno = 0;
|
||||||
|
|
||||||
MP_DBG(vf, "initialized.\n");
|
MP_DBG(vf, "uninitialized.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int reinit_vs(struct vf_instance *vf)
|
static int reinit_vs(struct vf_instance *vf)
|
||||||
|
@ -445,6 +445,8 @@ static int reinit_vs(struct vf_instance *vf)
|
||||||
|
|
||||||
destroy_vs(vf);
|
destroy_vs(vf);
|
||||||
|
|
||||||
|
MP_DBG(vf, "initializing...\n");
|
||||||
|
|
||||||
// First load an empty script to get a VSScript, so that we get the vsapi
|
// First load an empty script to get a VSScript, so that we get the vsapi
|
||||||
// and vscore.
|
// and vscore.
|
||||||
if (vsscript_evaluateScript(&p->se, "", NULL, 0))
|
if (vsscript_evaluateScript(&p->se, "", NULL, 0))
|
||||||
|
@ -486,6 +488,7 @@ static int reinit_vs(struct vf_instance *vf)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MP_DBG(vf, "initialized.\n");
|
||||||
res = 0;
|
res = 0;
|
||||||
error:
|
error:
|
||||||
if (p->vsapi) {
|
if (p->vsapi) {
|
||||||
|
|
Loading…
Reference in New Issue