summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2005-11-13 13:43:20 +0000
committerpixel <pixel>2005-11-13 13:43:20 +0000
commitd51d35a379cb3e01ade8410e87147bd71b2dbf9b (patch)
tree93f984051d04b26b6cb9b3a97c49790b3333fe95 /lib
parentcf6fa52a70b54370c1759d436aeab288d37ff4d8 (diff)
Fixing various stuff, especially DVD reading.
Diffstat (limited to 'lib')
-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;