summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 18:16:02 +0100
committerwm4 <wm4@nowhere>2013-12-21 20:50:11 +0100
commitfb5ee5bfbe7a7706014b4413d37c480d30512a8a (patch)
treedabf51fa809947c0a1766512c1b01cc52965b2bc
parent95d94238f4ad99b1da84b96d7692d25a800cc982 (diff)
downloadmpv-fb5ee5bfbe7a7706014b4413d37c480d30512a8a.tar.bz2
mpv-fb5ee5bfbe7a7706014b4413d37c480d30512a8a.tar.xz
player: use MSGL_SMODE for some slave-mode stuff
Replacement for MSGT_IDENTIFY. Can't kill it off completely yet; certain people would complain to me personally.
-rw-r--r--player/loadfile.c18
-rw-r--r--player/playloop.c2
2 files changed, 10 insertions, 10 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index d9518c1918..d00c5ee218 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -220,30 +220,30 @@ static void print_stream(struct MPContext *mpctx, struct track *t)
if (!iid)
return;
int id = t->user_tid;
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_%s_ID=%d\n", iid, id);
+ MP_SMODE(mpctx, "ID_%s_ID=%d\n", iid, id);
if (t->title)
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_%s_%d_NAME=%s\n", iid, id, t->title);
+ MP_SMODE(mpctx, "ID_%s_%d_NAME=%s\n", iid, id, t->title);
if (t->lang)
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_%s_%d_LANG=%s\n", iid, id, t->lang);
+ MP_SMODE(mpctx, "ID_%s_%d_LANG=%s\n", iid, id, t->lang);
}
static void print_file_properties(struct MPContext *mpctx)
{
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_FILENAME=%s\n", mpctx->filename);
- mp_msg(MSGT_IDENTIFY, MSGL_INFO,
+ MP_SMODE(mpctx, "ID_FILENAME=%s\n", mpctx->filename);
+ MP_SMODE(mpctx,
"ID_LENGTH=%.2f\n", get_time_length(mpctx));
int chapter_count = get_chapter_count(mpctx);
if (chapter_count >= 0) {
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTERS=%d\n", chapter_count);
+ MP_SMODE(mpctx, "ID_CHAPTERS=%d\n", chapter_count);
for (int i = 0; i < chapter_count; i++) {
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_ID=%d\n", i);
+ MP_SMODE(mpctx, "ID_CHAPTER_ID=%d\n", i);
// print in milliseconds
double time = chapter_start_time(mpctx, i) * 1000.0;
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_%d_START=%"PRId64"\n",
+ MP_SMODE(mpctx, "ID_CHAPTER_%d_START=%"PRId64"\n",
i, (int64_t)(time < 0 ? -1 : time));
char *name = chapter_name(mpctx, i);
if (name) {
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_CHAPTER_%d_NAME=%s\n", i,
+ MP_SMODE(mpctx, "ID_CHAPTER_%d_NAME=%s\n", i,
name);
talloc_free(name);
}
diff --git a/player/playloop.c b/player/playloop.c
index 971895b6a2..9078853fb5 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -105,7 +105,7 @@ void pause_player(struct MPContext *mpctx)
print_status(mpctx);
if (!mpctx->opts->quiet)
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n");
+ MP_SMODE(mpctx, "ID_PAUSED\n");
}
void unpause_player(struct MPContext *mpctx)