Mercurial > mplayer.hg
changeset 25050:64d8dec106a5
Cleanup sg_io_hdr initialization a bit
author | reimar |
---|---|
date | Sat, 17 Nov 2007 19:07:04 +0000 |
parents | 225a382a3c2e |
children | ae7926711cd2 |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Sat Nov 17 19:02:30 2007 +0000 +++ b/stream/stream_dvd.c Sat Nov 17 19:07:04 2007 +0000 @@ -79,10 +79,9 @@ 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.dxferp = buffer; sghdr.cmd_len = sizeof(cmd); - sghdr.dxferp = buffer; sghdr.cmdp = cmd; memset(cmd, 0, sizeof(cmd));