comparison stream/stream_vcd.c @ 35885:3389262720da

Fix previous commit, off_t must be replaced by int64_t The commit replacing off_t by uint64_t was by accident, I meant to commit this variant. off_t must be replaced by a signed type to avoid breaking things like seeking backwards and also detecting errors from e.g. lseek without too complex hacks.
author reimar
date Sat, 16 Mar 2013 13:38:34 +0000
parents b5abdfe9bc61
children 3a192d8ecc56
comparison
equal deleted inserted replaced
35884:edd8273dc025 35885:3389262720da
81 if(s->pos > s->end_pos) /// don't past end of current track 81 if(s->pos > s->end_pos) /// don't past end of current track
82 return 0; 82 return 0;
83 return vcd_read(s->priv,buffer); 83 return vcd_read(s->priv,buffer);
84 } 84 }
85 85
86 static int seek(stream_t *s, uint64_t newpos) { 86 static int seek(stream_t *s, int64_t newpos) {
87 s->pos = newpos; 87 s->pos = newpos;
88 vcd_set_msf(s->priv,s->pos/VCD_SECTOR_DATA); 88 vcd_set_msf(s->priv,s->pos/VCD_SECTOR_DATA);
89 return 1; 89 return 1;
90 } 90 }
91 91