summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/codecs.c12
-rw-r--r--common/codecs.h3
2 files changed, 8 insertions, 7 deletions
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