aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-05-31 06:35:28 +0800
committerpetef <petef@FreeBSD.org>2002-05-31 06:35:28 +0800
commit1b9c1c910d391d2128ef22ce94289f01935f1967 (patch)
treee9657189b314415213a47a7e6dc63d9f477855ae /audio
parentde1f4c6973bf45cef1789fa2d3233c7be6b10a96 (diff)
downloadfreebsd-ports-graphics-1b9c1c910d391d2128ef22ce94289f01935f1967.tar.gz
freebsd-ports-graphics-1b9c1c910d391d2128ef22ce94289f01935f1967.tar.zst
freebsd-ports-graphics-1b9c1c910d391d2128ef22ce94289f01935f1967.zip
Only poll the CD drive every 10 seconds (instead of every second) to see if
there is a CD in the drive to avoid annoying kernel messages. PR: 38720 Submitted by: maintainer
Diffstat (limited to 'audio')
-rw-r--r--audio/grip/Makefile1
-rw-r--r--audio/grip/files/patch-src-grip.c30
2 files changed, 29 insertions, 2 deletions
diff --git a/audio/grip/Makefile b/audio/grip/Makefile
index 5bc77eee813..a283f70f782 100644
--- a/audio/grip/Makefile
+++ b/audio/grip/Makefile
@@ -7,6 +7,7 @@
PORTNAME= grip
PORTVERSION= 3.0.0
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=grip
diff --git a/audio/grip/files/patch-src-grip.c b/audio/grip/files/patch-src-grip.c
index 120180592f3..8b0eaa508cf 100644
--- a/audio/grip/files/patch-src-grip.c
+++ b/audio/grip/files/patch-src-grip.c
@@ -1,5 +1,5 @@
---- src/grip.c.orig Wed May 1 18:30:22 2002
-+++ src/grip.c Wed May 1 18:30:33 2002
+--- src/grip.c.orig Sun Mar 10 21:59:44 2002
++++ src/grip.c Wed May 29 21:57:19 2002
@@ -144,7 +144,7 @@
app=gnome_app_new(PACKAGE,_("Grip"));
@@ -9,3 +9,29 @@
gtk_object_set_user_data(GTK_OBJECT(app),(gpointer)ginfo);
+@@ -511,8 +511,10 @@
+ if(ginfo->rewinding) Rewind(ginfo);
+
+ #ifdef GRIPCD
+- if(!ginfo->have_disc)
+- CheckNewDisc(ginfo);
++ if (!(time(0) % 10)) {
++ if(!ginfo->have_disc)
++ CheckNewDisc(ginfo);
++ }
+
+ if(ginfo->auto_eject_countdown && !(--ginfo->auto_eject_countdown))
+ EjectDisc(&(ginfo->disc));
+@@ -522,8 +524,10 @@
+ if(ginfo->ripping|ginfo->encoding) UpdateRipProgress(ginfo);
+
+ if(!ginfo->ripping) {
+- if(!ginfo->have_disc)
+- CheckNewDisc(ginfo);
++ if (!(time(0) % 10)) {
++ if(!ginfo->have_disc)
++ CheckNewDisc(ginfo);
++ }
+
+ UpdateDisplay(ginfo);
+ }