[MPlayer-cvslog] r25077 - trunk/stream/stream_dvd.c
reimar
subversion at mplayerhq.hu
Sat Nov 17 20:02:31 CET 2007
Author: reimar
Date: Sat Nov 17 20:02:30 2007
New Revision: 25077
Log:
We do not have any use for the sense data, so we don't need a buffer for it.
Modified:
trunk/stream/stream_dvd.c
Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c (original)
+++ trunk/stream/stream_dvd.c Sat Nov 17 20:02:30 2007
@@ -51,11 +51,9 @@ static void dvd_set_speed(char *device,
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,
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;
More information about the MPlayer-cvslog
mailing list