diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-17 19:07:04 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-17 19:07:04 +0000 |
commit | ee1dd235b380929b370dfa3721806b36c8db7f2c (patch) | |
tree | 5c642f3bd5dac71aebf93272b13d4625976a3b62 /stream | |
parent | 9494622558ad989462b5141ca77b46eea762e837 (diff) | |
download | mpv-ee1dd235b380929b370dfa3721806b36c8db7f2c.tar.bz2 mpv-ee1dd235b380929b370dfa3721806b36c8db7f2c.tar.xz |
Cleanup sg_io_hdr initialization a bit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25078 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_dvd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 101dc29407..febc011f6b 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -79,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 = 0; sghdr.dxfer_len = sizeof(buffer); - sghdr.cmd_len = sizeof(cmd); sghdr.dxferp = buffer; + sghdr.cmd_len = sizeof(cmd); sghdr.cmdp = cmd; memset(cmd, 0, sizeof(cmd)); |