mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 08:26:56 +00:00
Cleanup sg_io_hdr initialization a bit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25078 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9494622558
commit
ee1dd235b3
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user