changeset 25416:a79a22add62a

Do not operate on vobsub when no video (Bug #312).
author ulion
date Tue, 18 Dec 2007 03:33:36 +0000
parents a0a6541b1944
children b0cd876a0c32
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Dec 17 19:35:30 2007 +0000
+++ b/mplayer.c	Tue Dec 18 03:33:36 2007 +0000
@@ -2272,7 +2272,7 @@
 	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);
     }