From 0e340ce804c83acd7cfe13f594dfdc234cf56981 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Apr 2018 17:58:08 +0200 Subject: filter: hide warning when disconnecting pins drops frames Sometimes this hints that there's a bug, but sometimes it's normal. Since the code for --end/--frames puts frames that should not be shown anymore back into the pin, using those options will show this warning when playback ends. This is a minor annoyance. We could change how it's done (e.g. set an explicit flag somewhere), but that seems bothersome, so just change the message from warning to verbose. --- filters/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filters/filter.c b/filters/filter.c index 8d88a7746e..beec13c210 100644 --- a/filters/filter.c +++ b/filters/filter.c @@ -406,9 +406,9 @@ static void deinit_connection(struct mp_pin *p) assert(!p->other->data.type); // unused for in pins p->data_requested = false; if (p->data.type) - MP_WARN(p->owner, "dropping frame due to pin disconnect\n"); + MP_VERBOSE(p->owner, "dropping frame due to pin disconnect\n"); if (p->data_requested) - MP_WARN(p->owner, "dropping request due to pin disconnect\n"); + MP_VERBOSE(p->owner, "dropping request due to pin disconnect\n"); mp_frame_unref(&p->data); p = p->other->user_conn; } -- cgit v1.2.3