aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2009-01-16 15:07:00 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2009-01-16 15:07:00 +0000
commit962697d427ba3bf185e166bb89b93bd0357e9ab5 (patch)
treeb33be908d5da76b3be0e9d35ce7641fad5be7227
parentf148355ab299512915a840296396de1dfe35b4fe (diff)
downloadports-962697d427ba3bf185e166bb89b93bd0357e9ab5.tar.gz
ports-962697d427ba3bf185e166bb89b93bd0357e9ab5.zip
Notes
-rw-r--r--multimedia/mplayer/Makefile2
-rw-r--r--multimedia/mplayer/files/patch-libao2-ao_oss.c18
2 files changed, 19 insertions, 1 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile
index d1c7ac3e4c9b..9459784b69bd 100644
--- a/multimedia/mplayer/Makefile
+++ b/multimedia/mplayer/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mplayer
PORTVERSION= ${MPLAYER_PORT_VERSION}
-PORTREVISION= 10
+PORTREVISION= 11
COMMENT= High performance media player supporting many formats
diff --git a/multimedia/mplayer/files/patch-libao2-ao_oss.c b/multimedia/mplayer/files/patch-libao2-ao_oss.c
new file mode 100644
index 000000000000..ba7ccfb401eb
--- /dev/null
+++ b/multimedia/mplayer/files/patch-libao2-ao_oss.c
@@ -0,0 +1,18 @@
+--- libao2/ao_oss.c.orig
++++ libao2/ao_oss.c
+@@ -433,6 +433,7 @@
+ fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
+ #endif
+
++ ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
+ oss_format = format2oss(ao_data.format);
+ ioctl (audio_fd, SNDCTL_DSP_SETFMT, &oss_format);
+ if(ao_data.format != AF_FORMAT_AC3) {
+@@ -442,7 +443,6 @@
+ int c = ao_data.channels-1;
+ ioctl (audio_fd, SNDCTL_DSP_STEREO, &c);
+ }
+- ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
+ }
+ }
+