[Mplayer-cvslog] CVS: main mplayer.c,1.363,1.364

Arpi arpi at thot.banki.hu
Sun Jan 20 01:26:38 CET 2002


Hi,

(number of users reported -alang/-slang bug)*10l to you....

moving audio_id/dvdsub_id setting _AFTER_ demuxer initialization won't
work...

> Update of /cvsroot/mplayer/main
> In directory mplayer:/var/tmp.root/cvs-serv3922
> 
> Modified Files:
> 	mplayer.c 
> Log Message:
> Support software scaling with DVD subtitles
> 
> Index: mplayer.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/mplayer.c,v
> retrieving revision 1.363
> retrieving revision 1.364
> diff -u -r1.363 -r1.364
> --- mplayer.c	10 Jan 2002 17:18:30 -0000	1.363
> +++ mplayer.c	11 Jan 2002 12:14:22 -0000	1.364
> @@ -900,18 +900,6 @@
>    exit_player(MSGTR_Exit_eof);
>  }
>  
> -#ifdef USE_DVDREAD
> -  current_module="dvd lang->id";
> -  if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
> -  if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
> -
> -  current_module="spudec";
> -  vo_spudec=spudec_new(stream->priv?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL);
> -  if (vo_spudec!=NULL)
> -    inited_flags|=INITED_SPUDEC;
> -#endif
> -  current_module=NULL;
> -
>      // initial prefill: 20%  later: 5%  (should be set by -cacheopts)
>    if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024/5,stream_cache_size*1024/20);
>  
> @@ -1038,6 +1026,18 @@
>      goto goto_next_file; // exit_player(MSGTR_Exit_error);
>  }
>  
> +#ifdef USE_DVDREAD
> +current_module="dvd lang->id";
> +if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
> +if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
> +
> +current_module="spudec";
> +vo_spudec=spudec_new_scaled(stream->priv?((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;
> +#endif
> +current_module=NULL;
>  	
>  #ifdef USE_SUB
>  // after reading video params we should load subtitles because
> 
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
> 
> 


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu



More information about the MPlayer-cvslog mailing list