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.
This commit is contained in:
wm4 2018-04-26 17:58:08 +02:00 committed by Jan Ekström
parent 6c8362ef54
commit 0e340ce804
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}