mirror of https://github.com/mpv-player/mpv
vf_lavfi: reset metadata in reset()
It might have been nice not to do this so that metadata could accumulate accross seeks, but it seems libavfilter looses its copy anyway on recreate_graph.
This commit is contained in:
parent
e3e565c194
commit
479dab5718
|
@ -326,6 +326,10 @@ static void reset(vf_instance_t *vf)
|
|||
struct mp_image_params *f = &vf->fmt_in;
|
||||
if (p->graph && f->imgfmt)
|
||||
recreate_graph(vf, f->w, f->h, f->d_w, f->d_h, f->imgfmt);
|
||||
if (p->metadata) {
|
||||
talloc_free(p->metadata);
|
||||
p->metadata = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static int control(vf_instance_t *vf, int request, void *data)
|
||||
|
|
Loading…
Reference in New Issue