[Mplayer-cvslog] CVS: main mplayer.c,1.696,1.697 => breaks dvd subtitles + PATCH
Pierre Lombard
p_l at gmx.fr
Sun Jun 1 22:49:20 CEST 2003
Hi,
* Alex Beregszaszi <alex at fsn.hu> [2003-06-01 21:59]:
> attached a cleaner patch which should work also, but I cannot test, so
> please reply ASAP!
I did not test but it does not seem equivalent to the version before.
> Index: mplayer.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/mplayer.c,v
> retrieving revision 1.701
> diff -u -r1.701 mplayer.c
> --- mplayer.c 31 May 2003 21:50:21 -0000 1.701
> +++ mplayer.c 1 Jun 2003 20:30:30 -0000
> @@ -3426,11 +3426,11 @@
> // DVD sub:
> if(vo_config_count && vo_spudec) {
> unsigned char* packet=NULL;
> - int len=1,timestamp;
> + int len,timestamp;
> current_module="spudec";
> spudec_heartbeat(vo_spudec,90000*sh_video->timer);
> // Get a sub packet from the dvd or a vobsub and make a timestamp relative to sh_video->timer
> - while(len>0 && packet){
> + do {
> // Vobsub
> len = 0;
> if(vo_vobsub) {
> @@ -3452,7 +3452,7 @@
> }
packet/len may be NULL/0 here so a test is still required here.
> if(timestamp < 0) timestamp = 0;
> spudec_assemble(vo_spudec,packet,len,timestamp);
> - }
> + } while (len > 0 && packet);
>
> /* detect wether the sub has changed or not */
> if(spudec_changed(vo_spudec))
More information about the MPlayer-cvslog
mailing list