summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 18:46:24 +0100
committerwm4 <wm4@nowhere>2013-12-21 20:50:12 +0100
commit5f0fbacf1650392238d49df23a799ba4938f9326 (patch)
tree99590b24cc9bd5aa1c638516d335fd63fe6b2cce /common
parent71b6a5229562aff8d26d2b40ed0bf77d09beb80c (diff)
downloadmpv-5f0fbacf1650392238d49df23a799ba4938f9326.tar.bz2
mpv-5f0fbacf1650392238d49df23a799ba4938f9326.tar.xz
codecs: mp_msg conversion
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