mirror of https://github.com/mpv-player/mpv
player: don't crash when using sub_seek without subtitles
Recent regression. It turns out the assertion was completely unneeded. Fixes #1285.
This commit is contained in:
parent
ae5df9be98
commit
17ee2ca524
|
@ -201,8 +201,6 @@ void get_osd_sub_state(struct MPContext *mpctx, int order,
|
||||||
struct dec_sub *dec_sub = mpctx->d_sub[order];
|
struct dec_sub *dec_sub = mpctx->d_sub[order];
|
||||||
int obj = order ? OSDTYPE_SUB2 : OSDTYPE_SUB;
|
int obj = order ? OSDTYPE_SUB2 : OSDTYPE_SUB;
|
||||||
|
|
||||||
assert(track);
|
|
||||||
|
|
||||||
struct osd_sub_state state = {
|
struct osd_sub_state state = {
|
||||||
.dec_sub = dec_sub,
|
.dec_sub = dec_sub,
|
||||||
// Decides whether to use OSD path or normal subtitle rendering path.
|
// Decides whether to use OSD path or normal subtitle rendering path.
|
||||||
|
|
Loading…
Reference in New Issue