From 579b9eb8dec1f9d5708bb163ac13090f3af3bf76 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Oct 2019 23:20:20 +0200 Subject: 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. --- video/filter/vf_fingerprint.c | 2 -- 1 file changed, 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) -- cgit v1.2.3