From d51d35a379cb3e01ade8410e87147bd71b2dbf9b Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 13 Nov 2005 13:43:20 +0000 Subject: Fixing various stuff, especially DVD reading. --- lib/dvdabstract.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/dvdabstract.cpp b/lib/dvdabstract.cpp index 55a961a..9e2370f 100644 --- a/lib/dvdabstract.cpp +++ b/lib/dvdabstract.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: dvdabstract.cpp,v 1.2 2005-11-05 14:36:12 pixel Exp $ */ +/* $Id: dvdabstract.cpp,v 1.3 2005-11-13 13:43:22 pixel Exp $ */ #include "dvdabstract.h" @@ -54,6 +54,7 @@ ssize_t dvdabstract::read(void * _buf, size_t count) throw (GeneralException) { if ((start + count) < 2352) { memcpy(buf, i_buf + start, count); + v += count; return count; } @@ -68,6 +69,7 @@ ssize_t dvdabstract::read(void * _buf, size_t count) throw (GeneralException) { i_count -= 2352; sector++; buf += 2352; + v += 2352; } reminder = i_count; @@ -75,6 +77,7 @@ ssize_t dvdabstract::read(void * _buf, size_t count) throw (GeneralException) { if (reminder >= 0) { read_sector(i_buf, sector); memcpy(buf, i_buf, reminder); + v += reminder; } return count; -- cgit v1.2.3