msg: convert defines to enum

Also get rid of MSGL_HINT and the many MSGL_DBG* levels.
This commit is contained in:
wm4
2013-12-21 21:41:18 +01:00
parent 3fa584e280
commit eba5d025d2
9 changed files with 37 additions and 36 deletions

View File

@@ -698,7 +698,7 @@ int ebml_read_element(struct stream *s, struct ebml_parse_ctx *ctx,
void *target, const struct ebml_elem_desc *desc)
{
ctx->has_errors = false;
int msglevel = ctx->no_error_messages ? MSGL_DBG2 : MSGL_WARN;
int msglevel = ctx->no_error_messages ? MSGL_DEBUG : MSGL_WARN;
uint64_t length = ebml_read_length(s, &ctx->bytes_read);
if (s->eof) {
MP_MSG(ctx, msglevel, "Unexpected end of file "