aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-08-27 20:13:12 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-08-27 20:13:12 +0000
commit1e9d7b18a8d68ccc525bacdd9486dececce09b71 (patch)
tree7442dee4dfa21bb40457dfe367e6e1d35ba8cb5e
parent613f8416429d63f3bf2260bd63f34ddb2b58320c (diff)
downloadports-1e9d7b18a8d68ccc525bacdd9486dececce09b71.tar.gz
ports-1e9d7b18a8d68ccc525bacdd9486dececce09b71.zip
Notes
-rw-r--r--audio/mpg321/Makefile1
-rw-r--r--audio/mpg321/files/patch-mpg321.c34
2 files changed, 35 insertions, 0 deletions
diff --git a/audio/mpg321/Makefile b/audio/mpg321/Makefile
index 77f30acebb12..e1b009446ece 100644
--- a/audio/mpg321/Makefile
+++ b/audio/mpg321/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mpg321
PORTVERSION= 0.2.10
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mpg321
diff --git a/audio/mpg321/files/patch-mpg321.c b/audio/mpg321/files/patch-mpg321.c
new file mode 100644
index 000000000000..577535662338
--- /dev/null
+++ b/audio/mpg321/files/patch-mpg321.c
@@ -0,0 +1,34 @@
+
+$FreeBSD$
+
+--- mpg321.c.orig Sun Mar 24 06:49:20 2002
++++ mpg321.c Tue Aug 27 22:01:26 2002
+@@ -509,9 +509,6 @@
+
+ mad_decoder_finish(&decoder);
+
+- if (quit_now)
+- break;
+-
+ if (playbuf.frames)
+ free(playbuf.frames);
+
+@@ -521,6 +518,7 @@
+ if (playbuf.fd == -1)
+ {
+ munmap(playbuf.buf, playbuf.length);
++ close(fd);
+ }
+
+ else
+@@ -535,10 +533,6 @@
+ ao_close(playdevice);
+
+ ao_shutdown();
+-
+-#if defined(RAW_SUPPORT) || defined(HTTP_SUPPORT) || defined(FTP_SUPPORT)
+- if(fd) close(fd);
+-#endif
+
+ return(0);
+ }