summaryrefslogtreecommitdiff
path: root/lib/dvdabstract.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dvdabstract.cpp')
-rw-r--r--lib/dvdabstract.cpp5
1 files changed, 4 insertions, 1 deletions
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;