diff 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
line wrap: on
line diff
--- a/stream/stream_bluray.c	Sat Mar 16 13:38:30 2013 +0000
+++ b/stream/stream_bluray.c	Sat Mar 16 13:38:34 2013 +0000
@@ -87,10 +87,10 @@
     free(b);
 }
 
-static int bluray_stream_seek(stream_t *s, uint64_t pos)
+static int bluray_stream_seek(stream_t *s, int64_t pos)
 {
     struct bluray_priv_s *b = s->priv;
-    uint64_t p;
+    int64_t p;
 
     p = bd_seek(b->bd, pos);
     if (p == -1)