summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-04-29 08:02:24 -0700
committerKevin Mitchell <kevmitch@gmail.com>2014-04-29 08:31:44 -0700
commit479dab57186d60a69e18f96af9e4b2edaa565dcc (patch)
tree2c0ac370e9f4e1ae46ba766dc1034ed65bfd43cb /video
parente3e565c194580c0601568528b9bd2033ae0e6f70 (diff)
downloadmpv-479dab57186d60a69e18f96af9e4b2edaa565dcc.tar.bz2
mpv-479dab57186d60a69e18f96af9e4b2edaa565dcc.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf_lavfi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c
index 2002c97d16..fd7c1b3001 100644
--- a/video/filter/vf_lavfi.c
+++ b/video/filter/vf_lavfi.c
@@ -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)