mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
demux_mkv: always add subtitle tracks
Even if the codec is unknown.
This commit is contained in:
parent
15ff7a5719
commit
018530cb74
@ -1578,7 +1578,7 @@ static int demux_mkv_open_sub(demuxer_t *demuxer, mkv_track_t *track)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (subtitle_type) {
|
||||
|
||||
bstr in = (bstr){track->private_data, track->private_size};
|
||||
struct sh_stream *gsh = new_sh_stream(demuxer, STREAM_SUB);
|
||||
if (!gsh)
|
||||
@ -1602,11 +1602,11 @@ static int demux_mkv_open_sub(demuxer_t *demuxer, mkv_track_t *track)
|
||||
sh->gsh->lang = talloc_strdup(sh, track->language);
|
||||
sh->gsh->title = talloc_strdup(sh, track->name);
|
||||
sh->gsh->default_track = track->default_track;
|
||||
} else {
|
||||
|
||||
if (!subtitle_type) {
|
||||
mp_tmsg(MSGT_DEMUX, MSGL_ERR,
|
||||
"[mkv] Subtitle type '%s' is not supported.\n",
|
||||
track->codec_id);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user