mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08: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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user