player: don't show the path part for external subtitle files

Show the filename only. Feature request on IRC.
This commit is contained in:
wm4 2014-08-02 02:08:49 +02:00
parent 733bdebcb9
commit c94e8bcdd6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}