aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-17 19:02:30 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-17 19:02:30 +0000
commit9494622558ad989462b5141ca77b46eea762e837 (patch)
tree95d69512bcc4a15cc0937b850e5037e76b8346a5
parentb40c2c3057358c335a4b55e27210d102b0a8ec06 (diff)
We do not have any use for the sense data, so we don't need a buffer for it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25077 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/stream_dvd.c5
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;