diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-09-11 23:02:47 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-09-11 23:02:47 +0000 |
commit | 44d3595d7f039abbff721a9b53692aaac93c2aaa (patch) | |
tree | bdb1fde85b5675d4e4b32444d0c5412334fd7bc0 /src/xine-engine/audio_out.c | |
parent | 1826cc95d0ff8c8683ad78d03306ab379a569377 (diff) | |
download | xine-lib-44d3595d7f039abbff721a9b53692aaac93c2aaa.tar.gz xine-lib-44d3595d7f039abbff721a9b53692aaac93c2aaa.tar.bz2 |
fixed no-resample audio output, fixed qt stream end detection
CVS patchset: 620
CVS date: 2001/09/11 23:02:47
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 578847af3..a963dc4b3 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.15 2001/09/11 14:10:04 jcdutton Exp $ + * $Id: audio_out.c,v 1.16 2001/09/11 23:02:47 guenter Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -321,10 +321,12 @@ static int ao_write(ao_instance_t *this, if (!bDropPackage) { int num_output_frames = (double) num_frames * this->frame_rate_factor; - if ((!this->do_resample) && (this->mode != AO_CAP_MODE_A52) && (this->mode != AO_CAP_MODE_AC5)) { + if ((!this->do_resample) + && (this->mode != AO_CAP_MODE_A52) + && (this->mode != AO_CAP_MODE_AC5)) { xprintf (VERBOSE|AUDIO, "audio_out: writing without resampling\n"); this->driver->write (this->driver, output_frames, - num_output_frames ); + num_frames ); } else switch (this->mode) { case AO_CAP_MODE_MONO: audio_out_resample_mono (output_frames, num_frames, |