[MPlayer-dev-eng] [PATCH] CDDA seeking problems
Krister Lagerstrom
krister at kmlager.com
Fri Feb 21 14:02:40 CET 2003
Anders Johansson wrote:
> Anyone objects if I apply this patch?
>>Index: libmpdemux/cdda.c
>>===================================================================
>>RCS file: /cvsroot/mplayer/main/libmpdemux/cdda.c,v
>>retrieving revision 1.8
>>diff -u -r1.8 cdda.c
>>+++ libmpdemux/cdda.c 19 Feb 2003 05:55:21 -0000
>>@@ -182,8 +182,10 @@
>> s->pos = p->sector*CD_FRAMESIZE_RAW;
>> memcpy(s->buffer,buf,CD_FRAMESIZE_RAW);
>>
>>- if(p->sector == p->end_sector)
>>+ if((p->sector < p->start_sector) || (p->sector >= p->end_sector)) {
>> s->eof = 1;
>>+ return;
I found a bug in this, it should be "return 0".
/ Krister
More information about the MPlayer-dev-eng
mailing list