Mercurial > mplayer.hg
changeset 25043:e1dbd43b753d
Some cosmetics in dvd_set_speed
author | reimar |
---|---|
date | Sat, 17 Nov 2007 18:35:36 +0000 |
parents | e764cbed0175 |
children | 38a6ae2c303d |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Sat Nov 17 18:31:26 2007 +0000 +++ b/stream/stream_dvd.c Sat Nov 17 18:35:36 2007 +0000 @@ -108,15 +108,17 @@ AV_WB16(buffer + 18, 1000); AV_WB16(buffer + 26, 1000); - if ((fd = open(device, O_RDWR | O_NONBLOCK)) == -1) { + fd = open(device, O_RDWR | O_NONBLOCK); + if (fd == -1) { mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDspeedCantOpen); return; } - if (ioctl(fd, SG_IO, &sghdr) < 0) { + if (ioctl(fd, SG_IO, &sghdr) < 0) mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDlimitFail); - } else - mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDlimitOk); + else + mp_msg(MSGT_OPEN, MSGL_INFO, MSGTR_DVDlimitOk); + close(fd); #endif }