diff mplayer.c @ 4552:46ccfbb41f9c

fix spudec bug
author pontscho
date Wed, 06 Feb 2002 20:26:19 +0000
parents 4064940f3f9b
children 886bf5274992
line wrap: on
line diff
--- a/mplayer.c	Wed Feb 06 20:16:35 2002 +0000
+++ b/mplayer.c	Wed Feb 06 20:26:19 2002 +0000
@@ -1078,7 +1078,7 @@
 
 #ifdef USE_DVDREAD
 current_module="spudec";
-vo_spudec=spudec_new_scaled(stream->priv?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL,
+vo_spudec=spudec_new_scaled(stream->type==STREAMTYPE_DVD?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL,
 			    sh_video->disp_w, sh_video->disp_h);
 if (vo_spudec!=NULL)
   inited_flags|=INITED_SPUDEC;