diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-24 03:36:30 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-24 03:36:30 +0000 |
commit | ecfc1165ca6cba9bb914bb6a0b88979a7720c266 (patch) | |
tree | 561a65f4ad65cdf278fa11649500c60292e62c8c /src/audio_out/audio_oss_out.c | |
parent | 8608e8438b1e2acd3063706557fdeee70113bf7b (diff) | |
download | xine-lib-ecfc1165ca6cba9bb914bb6a0b88979a7720c266.tar.gz xine-lib-ecfc1165ca6cba9bb914bb6a0b88979a7720c266.tar.bz2 |
fixed small audio_fd initialization bug
CVS patchset: 223
CVS date: 2001/06/24 03:36:30
Diffstat (limited to 'src/audio_out/audio_oss_out.c')
-rw-r--r-- | src/audio_out/audio_oss_out.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index 0230741e6..4d214923f 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_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_oss_out.c,v 1.16 2001/06/24 02:19:29 guenter Exp $ + * $Id: audio_oss_out.c,v 1.17 2001/06/24 03:36:30 guenter Exp $ */ /* required for swab() */ @@ -127,8 +127,9 @@ static int ao_open(ao_functions_t *this_gen, if (this->audio_fd > -1) { - if ( (mode == this->mode) && (rate == this->input_sample_rate) ) + if ( (mode == this->mode) && (rate == this->input_sample_rate) ) { return 1; + } close (this->audio_fd); } @@ -601,6 +602,7 @@ ao_functions_t *init_audio_out_plugin (config_values_t *config) { close (audio_fd); this->output_sample_rate = 0; + this->audio_fd = -1; this->zero_space = malloc (8192); memset (this->zero_space, 0, 8192); |