diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-27 14:59:07 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-27 16:21:50 +0100 |
commit | c18cf4394d66bf5011d1d8786b6f99bd389abaf2 (patch) | |
tree | 27cfa8056a58210c440411e6fff1ab34763f89ae | |
parent | fcc360ccad4d611609c098db004cfbd58c8cd895 (diff) | |
download | mpv-c18cf4394d66bf5011d1d8786b6f99bd389abaf2.tar.bz2 mpv-c18cf4394d66bf5011d1d8786b6f99bd389abaf2.tar.xz |
command: try 'icy-title' metadata for media-title as well
-rw-r--r-- | player/command.c | 3 |
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); } |