summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-03 00:31:41 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-03 00:31:41 +0000
commit4cd35a04b907fcf450f3571b0f3288df848c4b07 (patch)
treef47dab2f2f578efae47bde754f9462e433b151ba /mplayer.c
parent8e97bbd1dd30c66b3b12c42c56c773ee70b798b6 (diff)
downloadmpv-4cd35a04b907fcf450f3571b0f3288df848c4b07.tar.bz2
mpv-4cd35a04b907fcf450f3571b0f3288df848c4b07.tar.xz
FreeBSD support by Vladimir Kushnir vkushnir@Alfacom.net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@959 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index e8d6198d7d..3d529936ed 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -17,7 +17,11 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/soundcard.h>
+#ifdef __FreeBSD__
+#include <sys/cdio.h>
+#else
#include <linux/cdrom.h>
+#endif
#include "version.h"
#include "config.h"
@@ -444,7 +448,7 @@ int screen_size_y=0;//SCREEN_SIZE_Y;
int screen_size_xy=0;
// movie info:
int out_fmt=0;
-char *dsp="/dev/dsp";
+char *dsp=NULL;
int force_ni=0;
char *conffile;
int conffile_fd;
@@ -575,7 +579,8 @@ if(!filename){
}
// check audio_out
-//audio_out=audio_out_drivers[0];
+audio_out=audio_out_drivers[0];
+if(dsp) audio_out->control(AOCONTROL_SET_DEVICE,dsp);
// check codec.conf
if(!parse_codec_cfg(get_path("codecs.conf"))){