From bf74a4cc4665f152212c0e165bbe2a20d535021c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 2 Sep 2014 22:28:11 +0200 Subject: player: add --media-title option Requested by ChrisK2. --- player/command.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player') diff --git a/player/command.c b/player/command.c index 02f8ce55bf..3e5849fe80 100644 --- a/player/command.c +++ b/player/command.c @@ -229,6 +229,10 @@ static int mp_property_media_title(void *ctx, struct m_property *prop, { MPContext *mpctx = ctx; char *name = NULL; + if (mpctx->opts->media_title) + name = mpctx->opts->media_title; + if (name && name[0]) + return m_property_strdup_ro(action, arg, name); if (mpctx->resolve_result) name = mpctx->resolve_result->title; if (name && name[0]) -- cgit v1.2.3