]> git.pld-linux.org Git - packages/libdvdread.git/blame - libdvdread-buffix.patch
- added buffix patch (read buffer handling bugfix from libdvdread 0.9.7)
[packages/libdvdread.git] / libdvdread-buffix.patch
CommitLineData
c25a865d
JB
1--- libdvdread-4.2.0/src/dvd_input.c.orig 2009-06-09 00:02:37.000000000 +0200
2+++ libdvdread-4.2.0/src/dvd_input.c 2012-03-16 20:01:21.501749182 +0100
3@@ -218,12 +218,13 @@ static int file_read(dvd_input_t dev, vo
4 {
5 size_t len;
6 ssize_t ret;
7+ unsigned char *buf = buffer;
8
9 len = (size_t)blocks * DVD_VIDEO_LB_LEN;
10
11 while(len > 0) {
12
13- ret = read(dev->fd, buffer, len);
14+ ret = read(dev->fd, buf, len);
15
16 if(ret < 0) {
17 /* One of the reads failed, too bad. We won't even bother
18@@ -242,6 +243,7 @@ static int file_read(dvd_input_t dev, vo
19 return (int) (bytes / DVD_VIDEO_LB_LEN);
20 }
21
22+ buf += ret;
23 len -= ret;
24 }
25
This page took 0.068447 seconds and 4 git commands to generate.