aboutsummaryrefslogtreecommitdiff
path: root/audio/tcd/files/patch-tcd.c
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-06-26 23:31:04 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-06-26 23:31:04 +0000
commit07db9b1ac3e028ed0567c466b0480ee092a201bc (patch)
treeec6ee5cd6ed49a981b3ff4034ab5e2196a823091 /audio/tcd/files/patch-tcd.c
parentade2790f00076ce0624696d05230997f2fec2e32 (diff)
downloadports-07db9b1ac3e028ed0567c466b0480ee092a201bc.tar.gz
ports-07db9b1ac3e028ed0567c466b0480ee092a201bc.zip
- Fix segmentation fault when ejecting a CD
- Fix typo in my e-mail address - Bump portrevision
Notes
Notes: svn path=/head/; revision=215815
Diffstat (limited to 'audio/tcd/files/patch-tcd.c')
-rw-r--r--audio/tcd/files/patch-tcd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/audio/tcd/files/patch-tcd.c b/audio/tcd/files/patch-tcd.c
index dc61a4e5750f..0a2a2af92778 100644
--- a/audio/tcd/files/patch-tcd.c
+++ b/audio/tcd/files/patch-tcd.c
@@ -1,6 +1,11 @@
---- src/tcd.c.orig 2008-06-26 19:40:23.000000000 +0200
-+++ src/tcd.c 2008-06-26 19:40:47.000000000 +0200
-@@ -221,7 +221,7 @@
+--- src/tcd.c.orig 2004-06-15 22:32:31.000000000 +0200
++++ src/tcd.c 2008-06-27 01:25:01.000000000 +0200
+@@ -217,11 +217,11 @@
+ static void detect_disc_change(void)
+ {
+ unsigned long discid = cddb_discid(state.cdrom);
+- if (discid != state.current_discid) {
++ if (CD_INDRIVE(state.cdrom->status) && discid != state.current_discid) {
if (state.cd_info.modified) {
tcd_writediskinfo(&state.cd_info, state.cdrom);
}