From 44d3595d7f039abbff721a9b53692aaac93c2aaa Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Tue, 11 Sep 2001 23:02:47 +0000 Subject: fixed no-resample audio output, fixed qt stream end detection CVS patchset: 620 CVS date: 2001/09/11 23:02:47 --- src/xine-engine/audio_out.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/xine-engine') 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 @@ -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, -- cgit v1.2.3