aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mplayerxp/files/patch-mplayerxp__libao2__ao_oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayerxp/files/patch-mplayerxp__libao2__ao_oss.c')
-rw-r--r--multimedia/mplayerxp/files/patch-mplayerxp__libao2__ao_oss.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/mplayerxp/files/patch-mplayerxp__libao2__ao_oss.c b/multimedia/mplayerxp/files/patch-mplayerxp__libao2__ao_oss.c
new file mode 100644
index 000000000000..6d9c459acbf9
--- /dev/null
+++ b/multimedia/mplayerxp/files/patch-mplayerxp__libao2__ao_oss.c
@@ -0,0 +1,18 @@
+--- mplayerxp/libao2/ao_oss.c.orig Sat Jul 2 18:59:01 2005
++++ mplayerxp/libao2/ao_oss.c Sun Oct 1 22:06:55 2006
+@@ -171,6 +171,7 @@
+ }
+ show_fmts();
+ rval=0;
++#ifndef __FreeBSD__
+ if (ioctl (audio_fd, SNDCTL_DSP_GETCAPS, &rval) != -1)
+ {
+ MSG_INFO("AO-INFO: Capabilities: ");
+@@ -185,6 +186,7 @@
+ if(rval & DSP_CAP_BIND) MSG_INFO("bind ");
+ MSG_INFO("\n");
+ }
++#endif
+ close(audio_fd);
+ }
+ // open & setup audio device