summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-20 23:20:20 +0200
committerwm4 <wm4@nowhere>2019-10-21 01:38:25 +0200
commit579b9eb8dec1f9d5708bb163ac13090f3af3bf76 (patch)
tree3c85e702c208e884e6d6ca7a54fbe54d28447743
parent43e903980ba2cc1fb7527af26f7fcaf854010372 (diff)
downloadmpv-579b9eb8dec1f9d5708bb163ac13090f3af3bf76.tar.bz2
mpv-579b9eb8dec1f9d5708bb163ac13090f3af3bf76.tar.xz
vf_fingerprint: don't print fallback warning on each frame
f_reset, which is called on seeks, was a good place for resetting the warning flag (so the warning would be print again). Except some other code abused f_reset when all metadata was read (in both cases you want to clear the metadata). Instead of spending more time on getting this flag reset correctly, just never reset it.
-rw-r--r--video/filter/vf_fingerprint.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/filter/vf_fingerprint.c b/video/filter/vf_fingerprint.c
index 91ca2b6a83..79273622b7 100644
--- a/video/filter/vf_fingerprint.c
+++ b/video/filter/vf_fingerprint.c
@@ -77,8 +77,6 @@ static void f_reset(struct mp_filter *f)
for (int n = 0; n < p->num_entries; n++)
talloc_free(p->entries[n].print);
p->num_entries = 0;
-
- p->fallback_warning = false;
}
static void f_process(struct mp_filter *f)