[Mplayer-cvslog] CVS: main mplayer.c,1.739,1.740 vobsub.c,1.34,1.35 vobsub.h,1.10,1.11

Felix Buenemann atmosfear at users.sourceforge.net
Mon Dec 8 21:54:15 CET 2003


On Monday 08 December 2003 19:36, Alex Beregszaszi wrote:
> Index: vobsub.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/vobsub.c,v
> retrieving revision 1.34
> retrieving revision 1.35
> diff -u -r1.34 -r1.35
> --- vobsub.c    28 Oct 2003 22:36:56 -0000      1.34
> +++ vobsub.c    8 Dec 2003 18:35:39 -0000       1.35
> @@ -1267,6 +1267,22 @@
>    return -1;
>  }
>  
> +void vobsub_seek(void * vobhandle, float pts)
> +{
> +  vobsub_t * vob = (vobsub_t *)vobhandle;
> +  packet_queue_t * queue;
> +  int seek_pts100 = (int)pts * 90000;
> +
> +  if (vob->spu_streams && 0 <= vobsub_id && (unsigned) vobsub_id <
> vob->spu_streams_size) { +    queue = vob->spu_streams + vobsub_id;
> +    queue->current_index = 0;
> +    while ((queue->packets + queue->current_index)->pts100 < seek_pts100)
> +      ++queue->current_index;
> +    if (queue->current_index > 0);
^^^^I think the ";" shouldn't be there, ptherwise the code is a bit strange =)
> +      --queue->current_index;
> +  }
> +}
> +

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________




More information about the MPlayer-cvslog mailing list