comparison stream/stream_bluray.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 4c42154f7aa3
comparison
equal deleted inserted replaced
35884:edd8273dc025 35885:3389262720da
85 bd_close(b->bd); 85 bd_close(b->bd);
86 b->bd = NULL; 86 b->bd = NULL;
87 free(b); 87 free(b);
88 } 88 }
89 89
90 static int bluray_stream_seek(stream_t *s, uint64_t pos) 90 static int bluray_stream_seek(stream_t *s, int64_t pos)
91 { 91 {
92 struct bluray_priv_s *b = s->priv; 92 struct bluray_priv_s *b = s->priv;
93 uint64_t p; 93 int64_t p;
94 94
95 p = bd_seek(b->bd, pos); 95 p = bd_seek(b->bd, pos);
96 if (p == -1) 96 if (p == -1)
97 return 0; 97 return 0;
98 98