summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-10-27 14:59:07 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-10-27 16:21:50 +0100
commitc18cf4394d66bf5011d1d8786b6f99bd389abaf2 (patch)
tree27cfa8056a58210c440411e6fff1ab34763f89ae
parentfcc360ccad4d611609c098db004cfbd58c8cd895 (diff)
downloadmpv-c18cf4394d66bf5011d1d8786b6f99bd389abaf2.tar.bz2
mpv-c18cf4394d66bf5011d1d8786b6f99bd389abaf2.tar.xz
command: try 'icy-title' metadata for media-title as well
-rw-r--r--player/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index b28103a954..7739e7bf45 100644
--- a/player/command.c
+++ b/player/command.c
@@ -373,6 +373,9 @@ static int mp_property_media_title(void *ctx, struct m_property *prop,
name = mp_tags_get_str(mpctx->master_demuxer->metadata, "title");
if (name && name[0])
return m_property_strdup_ro(action, arg, name);
+ name = mp_tags_get_str(mpctx->master_demuxer->metadata, "icy-title");
+ if (name && name[0])
+ return m_property_strdup_ro(action, arg, name);
}
return mp_property_filename(ctx, prop, action, arg);
}