changeset 7790:913e9b1f390f

10L
author kmkaplan
date Sat, 19 Oct 2002 01:58:34 +0000
parents 17956aff04e1
children 2c7d87662ea5
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Oct 19 00:57:44 2002 +0000
+++ b/mplayer.c	Sat Oct 19 01:58:34 2002 +0000
@@ -1085,7 +1085,7 @@
   unsigned int palette[16], width, height;
   current_module="spudec_init_vobsub";
   if (vobsub_parse_ifo(NULL,spudec_ifo, palette, &width, &height, 1, -1, NULL) >= 0)
-    vo_spudec=spudec_new_scaled(palette, sh_video->disp_w, sh_video->disp_h);
+    vo_spudec=spudec_new_scaled(palette, width, height);
 }
 
 #ifdef USE_DVDNAV
@@ -2209,6 +2209,7 @@
 	break;
     }
     case MP_CMD_VOBSUB_LANG:
+    if (vo_vobsub)
     {
 	int new_id = vobsub_id + 1;
 	if (vobsub_id < 0)
@@ -2590,7 +2591,7 @@
       } else
       if (osd_show_vobsub_changed) {
 	  const char *language = "none";
-	  if (vobsub_id >= 0)
+	  if (vo_vobsub && vobsub_id >= 0)
 	      language = vobsub_get_id(vo_vobsub, (unsigned int) vobsub_id);
 	  sprintf(osd_text_tmp, "Subtitles: (%d) %s", vobsub_id, language ? language : "unknown");
 	  osd_show_vobsub_changed--;