mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -201,8 +201,6 @@ void get_osd_sub_state(struct MPContext *mpctx, int order,
|
||||
struct dec_sub *dec_sub = mpctx->d_sub[order];
|
||||
int obj = order ? OSDTYPE_SUB2 : OSDTYPE_SUB;
|
||||
|
||||
assert(track);
|
||||
|
||||
struct osd_sub_state state = {
|
||||
.dec_sub = dec_sub,
|
||||
// Decides whether to use OSD path or normal subtitle rendering path.
|
||||
|
||||
Reference in New Issue
Block a user