[MPlayer-cvslog] r34577 - trunk/stream/stream_cdda.c

reimar subversion at mplayerhq.hu
Sun Jan 15 13:40:02 CET 2012


Author: reimar
Date: Sun Jan 15 13:40:02 2012
New Revision: 34577

Log:
Fix seeking beyond EOF in stream_cdda to work with cache.

Modified:
   trunk/stream/stream_cdda.c

Modified: trunk/stream/stream_cdda.c
==============================================================================
--- trunk/stream/stream_cdda.c	Sun Jan 15 13:38:38 2012	(r34576)
+++ trunk/stream/stream_cdda.c	Sun Jan 15 13:40:02 2012	(r34577)
@@ -267,7 +267,10 @@ static int control(stream_t *stream, int
       track += start_track;
       if (track > end_track) {
         seek(stream, (p->end_sector + 1) * CD_FRAMESIZE_RAW);
-        return STREAM_ERROR;
+        // seeking beyond EOF should not be an error,
+        // the cache cannot handle changing stream pos and
+        // returning error.
+        return STREAM_OK;
       }
       seek_sector = track <= 0 ? p->start_sector
                                : p->cd->disc_toc[track].dwStartSector;


More information about the MPlayer-cvslog mailing list