diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-09 02:44:39 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-09 02:44:39 +0000 |
commit | 7dc6d51bb322a864c3cca05ae712aa8022053e90 (patch) | |
tree | f377062eb04d0221531de031ad711598c920bdfe /src/xine-engine/audio_out.c | |
parent | 85a2757ca43eaf781c662a77c5a18b2d6dcb22fe (diff) | |
download | xine-lib-7dc6d51bb322a864c3cca05ae712aa8022053e90.tar.gz xine-lib-7dc6d51bb322a864c3cca05ae712aa8022053e90.tar.bz2 |
- can't use HAS_VIDEO/HAS_AUDIO at this stage because some demuxers will only
set it on send_headers. also daniel convinced me that xine does "handle a
no audio stream"
- fix audio_out.c to abort filling with zero on seeking/stop/quit.
CVS patchset: 3840
CVS date: 2003/01/09 02:44:39
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 5897963ab..2b5e0973e 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.95 2002/12/27 03:40:07 miguelfreitas Exp $ + * $Id: audio_out.c,v 1.96 2003/01/09 02:44:39 miguelfreitas Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -302,7 +302,7 @@ static void ao_fill_gap (aos_t *this, int64_t pts_len) { return; } - while (num_frames > 0) { + while (num_frames > 0 && !this->discard_buffers) { if (num_frames > ZERO_BUF_SIZE) { pthread_mutex_lock( &this->driver_lock ); this->driver->write(this->driver, this->zero_space, ZERO_BUF_SIZE); |