diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-29 15:41:37 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-29 15:41:37 +0000 |
commit | 4412aef47bf316ff5ad392038db5ad63d0a4706f (patch) | |
tree | fa5fc86ab2d2e4a5675f9ae22b04e8292b0e79b8 /src | |
parent | 770914745418280b412985a51ec87974b2ea014f (diff) | |
download | xine-lib-4412aef47bf316ff5ad392038db5ad63d0a4706f.tar.gz xine-lib-4412aef47bf316ff5ad392038db5ad63d0a4706f.tar.bz2 |
AUDIODEV patch by Mitch@0Bits.COM
CVS patchset: 5817
CVS date: 2003/11/29 15:41:37
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_out/audio_sun_out.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 9e7587398..5de3841d9 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_sun_out.c,v 1.31 2003/11/26 23:44:08 f1rmb Exp $ + * $Id: audio_sun_out.c,v 1.32 2003/11/29 15:41:37 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -870,6 +870,7 @@ static ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, const v config_values_t *config = class->xine->config; sun_driver_t *this; char *devname; + char *audiodev; int audio_fd; int status; audio_info_t info; @@ -878,10 +879,12 @@ static ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, const v this->xine = class->xine; + audiodev = getenv("AUDIODEV"); + /* Fill the .xinerc file with options */ devname = config->register_string(config, "audio.sun_audio_device", - "/dev/audio", + audiodev && *audiodev ? audiodev : "/dev/audio", _("device used for audio output with the 'Sun' audio plugin"), NULL, 10, NULL, |