Mercurial > mplayer.hg
comparison mplayer.c @ 12064:0acc1db14510
remove stupid misadvice
author | rfelker |
---|---|
date | Thu, 25 Mar 2004 06:40:04 +0000 |
parents | 239623f1e8a1 |
children | 99798c3cdb93 |
comparison
equal
deleted
inserted
replaced
12063:e11fc0ef72db | 12064:0acc1db14510 |
---|---|
1087 #ifdef HAVE_RTC | 1087 #ifdef HAVE_RTC |
1088 if(!nortc) | 1088 if(!nortc) |
1089 { | 1089 { |
1090 // seteuid(0); /* Can't hurt to try to get root here */ | 1090 // seteuid(0); /* Can't hurt to try to get root here */ |
1091 if ((rtc_fd = open("/dev/rtc", O_RDONLY)) < 0) | 1091 if ((rtc_fd = open("/dev/rtc", O_RDONLY)) < 0) |
1092 mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to open /dev/rtc: %s (mplayer should be setuid root or /dev/rtc should be readable by the user.)\n", strerror(errno)); | 1092 mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to open /dev/rtc: %s (/dev/rtc should be readable by the user.)\n", strerror(errno)); |
1093 else { | 1093 else { |
1094 unsigned long irqp = 1024; /* 512 seemed OK. 128 is jerky. */ | 1094 unsigned long irqp = 1024; /* 512 seemed OK. 128 is jerky. */ |
1095 | 1095 |
1096 if (ioctl(rtc_fd, RTC_IRQP_SET, irqp) < 0) { | 1096 if (ioctl(rtc_fd, RTC_IRQP_SET, irqp) < 0) { |
1097 mp_msg(MSGT_CPLAYER, MSGL_WARN, "Linux RTC init error in ioctl (rtc_irqp_set %lu): %s\n", irqp, strerror(errno)); | 1097 mp_msg(MSGT_CPLAYER, MSGL_WARN, "Linux RTC init error in ioctl (rtc_irqp_set %lu): %s\n", irqp, strerror(errno)); |