mirror of
https://github.com/mpv-player/mpv
synced 2025-04-21 14:49:08 +00:00
player: don't show the path part for external subtitle files
Show the filename only. Feature request on IRC.
This commit is contained in:
parent
733bdebcb9
commit
c94e8bcdd6
@ -752,7 +752,7 @@ static struct track *open_external_file(struct MPContext *mpctx, char *filename,
|
|||||||
if (sh->type == filter) {
|
if (sh->type == filter) {
|
||||||
struct track *t = add_stream_track(mpctx, demuxer, sh, false);
|
struct track *t = add_stream_track(mpctx, demuxer, sh, false);
|
||||||
t->is_external = true;
|
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);
|
t->external_filename = talloc_strdup(t, filename);
|
||||||
first = t;
|
first = t;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user