From 554c65e466c5b02b9a20b842401731173572910b Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Wed, 13 Jan 2016 01:50:38 +0100 Subject: player: prefer "service_name" as media title. If it is defined, which it rarely is (e.g. mpegts streams) this is the preferred title information. --- player/command.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/player/command.c b/player/command.c index 5355363920..1bcc985785 100644 --- a/player/command.c +++ b/player/command.c @@ -391,6 +391,9 @@ static int mp_property_media_title(void *ctx, struct m_property *prop, if (name && name[0]) return m_property_strdup_ro(action, arg, name); if (mpctx->master_demuxer) { + name = mp_tags_get_str(mpctx->master_demuxer->metadata, "service_name"); + if (name && name[0]) + return m_property_strdup_ro(action, arg, name); name = mp_tags_get_str(mpctx->master_demuxer->metadata, "title"); if (name && name[0]) return m_property_strdup_ro(action, arg, name); -- cgit v1.2.3