aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-04-26 17:58:08 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit0e340ce804c83acd7cfe13f594dfdc234cf56981 (patch)
treec307ed2b9b239c50a7af79b163db29d50cb28cfc
parent6c8362ef54f4e90476553cb6b64996cc414da06d (diff)
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.
-rw-r--r--filters/filter.c4
1 files 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;
}