mirror of
https://github.com/mpv-player/mpv
synced 2025-01-21 07:10:52 +00:00
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.
This commit is contained in:
parent
8128b7c8e2
commit
554c65e466
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user