[MPlayer-cvslog] r32589 - trunk/stream/stream_dvd.c
reimar
subversion at mplayerhq.hu
Sat Nov 6 20:33:31 CET 2010
Author: reimar
Date: Sat Nov 6 20:33:30 2010
New Revision: 32589
Log:
Change code to something understandable (but equivalent).
Modified:
trunk/stream/stream_dvd.c
Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c Sat Nov 6 20:30:48 2010 (r32588)
+++ trunk/stream/stream_dvd.c Sat Nov 6 20:33:30 2010 (r32589)
@@ -416,11 +416,9 @@ static void dvd_close(dvd_priv_t *d)
static int fill_buffer(stream_t *s, char *but, int len)
{
off_t pos=dvd_read_sector(s->priv,s->buffer);
- if(pos>=0) {
- len=2048; // full sector
- s->pos=2048*pos-len;
- } else len=-1; // error
- return len;
+ if (pos < 0)
+ s->pos = 2048*(pos - 1);
+ return 2048; // full sector
}
static int seek(stream_t *s, off_t newpos) {
More information about the MPlayer-cvslog
mailing list