diff options
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r-- | stream/stream_dvd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 17ec32d098..101dc29407 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -51,11 +51,9 @@ static void dvd_set_speed(char *device, unsigned speed) int fd; unsigned char buffer[28]; unsigned char cmd[12]; - unsigned char sense[16]; struct sg_io_hdr sghdr; struct stat st; - memset(sense, 0, sizeof(sense)); memset(&st, 0, sizeof(st)); if (stat(device, &st) == -1) return; @@ -81,10 +79,9 @@ static void dvd_set_speed(char *device, unsigned speed) sghdr.interface_id = 'S'; sghdr.timeout = 5000; sghdr.dxfer_direction = SG_DXFER_TO_DEV; - sghdr.mx_sb_len = sizeof(sense); + sghdr.mx_sb_len = 0; sghdr.dxfer_len = sizeof(buffer); sghdr.cmd_len = sizeof(cmd); - sghdr.sbp = sense; sghdr.dxferp = buffer; sghdr.cmdp = cmd; |