mirror of https://github.com/mpv-player/mpv
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:
parent
6c8362ef54
commit
0e340ce804
|
@ -406,9 +406,9 @@ static void deinit_connection(struct mp_pin *p)
|
||||||
assert(!p->other->data.type); // unused for in pins
|
assert(!p->other->data.type); // unused for in pins
|
||||||
p->data_requested = false;
|
p->data_requested = false;
|
||||||
if (p->data.type)
|
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)
|
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);
|
mp_frame_unref(&p->data);
|
||||||
p = p->other->user_conn;
|
p = p->other->user_conn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue