From c94e8bcdd68e4410ebaee431fddbfeed456d0d2c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Aug 2014 02:08:49 +0200 Subject: [PATCH] player: don't show the path part for external subtitle files Show the filename only. Feature request on IRC. --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/loadfile.c b/player/loadfile.c index bcb9e900de..a941f7af68 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -752,7 +752,7 @@ static struct track *open_external_file(struct MPContext *mpctx, char *filename, if (sh->type == filter) { struct track *t = add_stream_track(mpctx, demuxer, sh, false); t->is_external = true; - t->title = talloc_strdup(t, disp_filename); + t->title = talloc_strdup(t, mp_basename(disp_filename)); t->external_filename = talloc_strdup(t, filename); first = t; }