summaryrefslogtreecommitdiffstats
path: root/demux/demux_mkv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-26 18:05:51 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit137e34e3e9c3ab63e28c62be294d67f5668caf09 (patch)
tree5f020a9853a3d57c681773d320636b3ac6c4e35f /demux/demux_mkv.c
parent0e340ce804c83acd7cfe13f594dfdc234cf56981 (diff)
downloadmpv-137e34e3e9c3ab63e28c62be294d67f5668caf09.tar.bz2
mpv-137e34e3e9c3ab63e28c62be294d67f5668caf09.tar.xz
demux_mkv: adjust log verbosity levels
With -v -v ("debug" level), which is the default for --log-file, this would log every damn Matroska EBML element and some other uninteresting things, which was very noisy. Adjust the log levels to make them less noisy. Also, change some log calls to MP_ERR for things which are actually errors.
Diffstat (limited to 'demux/demux_mkv.c')
-rw-r--r--demux/demux_mkv.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c
index f836a6eff9..bad5af991b 100644
--- a/demux/demux_mkv.c
+++ b/demux/demux_mkv.c
@@ -356,7 +356,7 @@ static bstr demux_mkv_decode(struct mp_log *log, mkv_track_t *track,
dest = NULL;
goto error;
}
- mp_dbg(log, "lzo decompression buffer too small.\n");
+ mp_trace(log, "lzo decompression buffer too small.\n");
if (dstlen >= maxlen / 2) {
talloc_free(dest);
dest = NULL;
@@ -894,11 +894,11 @@ static int demux_mkv_read_cues(demuxer_t *demuxer)
cue_index_add(demuxer, trackpos->cue_track, pos,
time, trackpos->cue_duration);
mkv_d->index_has_durations |= trackpos->n_cue_duration > 0;
- MP_DBG(demuxer, "|+ found cue point for track %"PRIu64": "
- "timecode %"PRIu64", filepos: %"PRIu64""
- "offset %"PRIu64", duration %"PRIu64"\n",
- trackpos->cue_track, time, pos,
- trackpos->cue_relative_position, trackpos->cue_duration);
+ MP_TRACE(demuxer, "|+ found cue point for track %"PRIu64": "
+ "timecode %"PRIu64", filepos: %"PRIu64""
+ "offset %"PRIu64", duration %"PRIu64"\n",
+ trackpos->cue_track, time, pos,
+ trackpos->cue_relative_position, trackpos->cue_duration);
}
}
@@ -1232,8 +1232,8 @@ static int demux_mkv_read_seekhead(demuxer_t *demuxer)
continue;
}
uint64_t pos = seek->seek_position + mkv_d->segment_start;
- MP_DBG(demuxer, "Element 0x%"PRIx32" at %"PRIu64".\n",
- seek->seek_id, pos);
+ MP_TRACE(demuxer, "Element 0x%"PRIx32" at %"PRIu64".\n",
+ seek->seek_id, pos);
get_header_element(demuxer, seek->seek_id, pos);
}
out:
@@ -1938,7 +1938,7 @@ static int read_ebml_header(demuxer_t *demuxer)
"Assuming \"matroska\".\n");
} else if (strcmp(ebml_master.doc_type, "matroska") != 0
&& strcmp(ebml_master.doc_type, "webm") != 0) {
- MP_DBG(demuxer, "no head found\n");
+ MP_TRACE(demuxer, "no head found\n");
talloc_free(parse_ctx.talloc_ctx);
return 0;
}