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:
ulion 2007-12-18 03:33:36 +00:00
parent b411a839c2
commit 6cc3def957
1 changed files with 1 additions and 1 deletions

View File

@ -2272,7 +2272,7 @@ static int seek(MPContext *mpctx, double amount, int style)
mpctx->sh_audio->a_out_buffer_len = 0;
}
if (vo_vobsub) {
if (vo_vobsub && mpctx->sh_video) {
current_module = "seek_vobsub_reset";
vobsub_seek(vo_vobsub, mpctx->sh_video->pts);
}