[MPlayer-cvslog] r37283 - trunk/stream/stream_bluray.c

reimar subversion at mplayerhq.hu
Wed Sep 17 20:00:19 CEST 2014


Author: reimar
Date: Wed Sep 17 20:00:19 2014
New Revision: 37283

Log:
bluray: fix seek implementation again.

Modified:
   trunk/stream/stream_bluray.c

Modified: trunk/stream/stream_bluray.c
==============================================================================
--- trunk/stream/stream_bluray.c	Wed Sep 17 19:49:55 2014	(r37282)
+++ trunk/stream/stream_bluray.c	Wed Sep 17 20:00:19 2014	(r37283)
@@ -93,7 +93,9 @@ static int bluray_stream_seek(stream_t *
     p = bd_seek(b->bd, pos);
     // bd_seek does not say what happens on errors,
     // so be extra paranoid.
-    if (p < 0 || p != pos) {
+    // bd_seek also does not seek exactly to the requested
+    // position, so allow for some fuzz.
+    if (p < 0 || p > pos || p + 20*1024*1024 < pos) {
         s->pos = bd_tell(b->bd);
         return 0;
     }


More information about the MPlayer-cvslog mailing list