aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+ }
+ }
+