From 5f0fbacf1650392238d49df23a799ba4938f9326 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 18:46:24 +0100 Subject: codecs: mp_msg conversion --- common/codecs.c | 12 ++++++------ common/codecs.h | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'common') diff --git a/common/codecs.c b/common/codecs.c index b7639a4576..55e2bdf344 100644 --- a/common/codecs.c +++ b/common/codecs.c @@ -131,17 +131,17 @@ struct mp_decoder_list *mp_select_decoders(struct mp_decoder_list *all, return list; } -void mp_print_decoders(int msgt, int msgl, const char *header, +void mp_print_decoders(struct mp_log *log, int msgl, const char *header, struct mp_decoder_list *list) { - mp_msg(msgt, msgl, "%s\n", header); + mp_msg_log(log, msgl, "%s\n", header); for (int n = 0; n < list->num_entries; n++) { struct mp_decoder_entry *entry = &list->entries[n]; - mp_msg(msgt, msgl, " %s:%s", entry->family, entry->decoder); + mp_msg_log(log, msgl, " %s:%s", entry->family, entry->decoder); if (strcmp(entry->decoder, entry->codec) != 0) - mp_msg(msgt, msgl, " (%s)", entry->codec); - mp_msg(msgt, msgl, " - %s\n", entry->desc); + mp_msg_log(log, msgl, " (%s)", entry->codec); + mp_msg_log(log, msgl, " - %s\n", entry->desc); } if (list->num_entries == 0) - mp_msg(msgt, msgl, " (no decoders)\n"); + mp_msg_log(log, msgl, " (no decoders)\n"); } diff --git a/common/codecs.h b/common/codecs.h index 21ff284617..105aab5a82 100644 --- a/common/codecs.h +++ b/common/codecs.h @@ -37,7 +37,8 @@ struct mp_decoder_list *mp_select_decoders(struct mp_decoder_list *all, const char *codec, const char *selection); -void mp_print_decoders(int msgt, int msgl, const char *header, +struct mp_log; +void mp_print_decoders(struct mp_log *log, int msgl, const char *header, struct mp_decoder_list *list); #endif -- cgit v1.2.3