mirror of https://github.com/mpv-player/mpv
Do not operate on vobsub when no video (Bug #312).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25444 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b411a839c2
commit
6cc3def957
|
@ -2272,7 +2272,7 @@ static int seek(MPContext *mpctx, double amount, int style)
|
||||||
mpctx->sh_audio->a_out_buffer_len = 0;
|
mpctx->sh_audio->a_out_buffer_len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vo_vobsub) {
|
if (vo_vobsub && mpctx->sh_video) {
|
||||||
current_module = "seek_vobsub_reset";
|
current_module = "seek_vobsub_reset";
|
||||||
vobsub_seek(vo_vobsub, mpctx->sh_video->pts);
|
vobsub_seek(vo_vobsub, mpctx->sh_video->pts);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue