|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/jimmy/mplayer/devfs_path_fix.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
diff -ru MPlayer-1.0pre4.old/mplayer.c MPlayer-1.0pre4/mplayer.c
|
|
--- MPlayer-1.0pre4.old/mplayer.c 2004-04-26 23:15:13.000000000 +0200
|
|
+++ MPlayer-1.0pre4/mplayer.c 2004-04-28 12:48:15.000000000 +0200
|
|
@@ -1088,8 +1088,8 @@
|
|
if(!nortc)
|
|
{
|
|
// seteuid(0); /* Can't hurt to try to get root here */
|
|
- if ((rtc_fd = open("/dev/rtc", O_RDONLY)) < 0)
|
|
- mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to open /dev/rtc: %s (/dev/rtc should be readable by the user.)\n", strerror(errno));
|
|
+ if ((rtc_fd = open("/dev/misc/rtc", O_RDONLY)) < 0)
|
|
+ mp_msg(MSGT_CPLAYER, MSGL_WARN, "Failed to open /dev/misc/rtc: %s (/dev/misc/rtc should be readable by the user.)\n", strerror(errno));
|
|
else {
|
|
unsigned long irqp = 1024; /* 512 seemed OK. 128 is jerky. */
|
|
|