mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 19:52:14 +00:00
demux: don't name unknown chapters "unknown"
The frontend's fallback for missing chapter names is better.
This commit is contained in:
parent
b01e8d6210
commit
c653697610
@ -1296,8 +1296,7 @@ int demuxer_add_chapter(demuxer_t *demuxer, struct bstr name,
|
||||
.original_index = demuxer->num_chapters,
|
||||
.start = start,
|
||||
.end = end,
|
||||
.name = name.len ? bstrdup0(demuxer, name)
|
||||
: talloc_strdup(demuxer, mp_gtext("unknown")),
|
||||
.name = name.len ? bstrdup0(demuxer, name) : NULL,
|
||||
};
|
||||
MP_TARRAY_APPEND(demuxer, demuxer->chapters, demuxer->num_chapters, new);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user