[MPlayer-cvslog] r25071 - trunk/stream/stream_dvd.c
reimar
subversion at mplayerhq.hu
Sat Nov 17 19:35:36 CET 2007
Author: reimar
Date: Sat Nov 17 19:35:36 2007
New Revision: 25071
Log:
Some cosmetics in dvd_set_speed
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 19:35:36 2007
@@ -108,15 +108,17 @@ static void dvd_set_speed(char *device,
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
}
More information about the MPlayer-cvslog
mailing list