summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-22 12:10:55 +0200
committerwm4 <wm4@nowhere>2016-08-22 12:10:55 +0200
commit74d4073771cf9421b400189d240532663e98f239 (patch)
tree5be2ab747215ebc804aa90cf0cbf24d4dd392d51 /demux
parent93104142f4717a2d34d6a0cd6e5301c84fb04b6c (diff)
downloadmpv-74d4073771cf9421b400189d240532663e98f239.tar.bz2
mpv-74d4073771cf9421b400189d240532663e98f239.tar.xz
demux: demote packet queue overflow to a warning
It doesn't necessarily have to mean anything bad. We're still too lazy to provide any more detailed information (e.g. whether this happened to likely bad interleaving, excessive amount of packets like with some ASS subs, or that the readahead user option is limitted by the packet queue size).
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 0c42efee92..69e66990ff 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -580,12 +580,12 @@ static bool read_packet(struct demux_internal *in)
if (packs >= in->max_packs || bytes >= in->max_bytes) {
if (!in->warned_queue_overflow) {
in->warned_queue_overflow = true;
- MP_ERR(in, "Too many packets in the demuxer packet queues:\n");
+ MP_WARN(in, "Too many packets in the demuxer packet queues:\n");
for (int n = 0; n < in->num_streams; n++) {
struct demux_stream *ds = in->streams[n]->ds;
if (ds->selected) {
- MP_ERR(in, " %s/%d: %zd packets, %zd bytes\n",
- stream_type_name(ds->type), n, ds->packs, ds->bytes);
+ MP_WARN(in, " %s/%d: %zd packets, %zd bytes\n",
+ stream_type_name(ds->type), n, ds->packs, ds->bytes);
}
}
}