summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-07 14:21:12 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-12-08 00:06:17 +0100
commitdb4cec8a6cd6aaedc8fb764955dea2805aabfafd (patch)
tree49b8f845fa7739f33c0367e55cd8d31cf1ead2ce /player
parent4de6f4f616ded109ef0fe852c02a266ca8bd33e1 (diff)
downloadmpv-db4cec8a6cd6aaedc8fb764955dea2805aabfafd.tar.bz2
mpv-db4cec8a6cd6aaedc8fb764955dea2805aabfafd.tar.xz
sub: remove assertion
This should clearly be impossible, but it seems to happen with ordered chapters for a user. Since I can't tell what the actual bug is and it seems impossible to know the details without downloading possibly huge files, this is probably the best we can do. Should at least partially fix #1319.
Diffstat (limited to 'player')
-rw-r--r--player/sub.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/sub.c b/player/sub.c
index 461f7023cf..0323d49772 100644
--- a/player/sub.c
+++ b/player/sub.c
@@ -227,10 +227,9 @@ static void update_subtitle(struct MPContext *mpctx, int order)
struct track *track = mpctx->current_track[order][STREAM_SUB];
struct dec_sub *dec_sub = mpctx->d_sub[order];
- if (!track)
+ if (!track || !dec_sub)
return;
- assert(dec_sub);
int obj = order ? OSDTYPE_SUB2 : OSDTYPE_SUB;
if (mpctx->d_video) {