diff options
author | Heiko Schaefer <heikos@users.sourceforge.net> | 2001-11-13 21:47:57 +0000 |
---|---|---|
committer | Heiko Schaefer <heikos@users.sourceforge.net> | 2001-11-13 21:47:57 +0000 |
commit | 96056accd3b60b48527d521b85a3d50d78d3d42f (patch) | |
tree | fc93f084460362a7c1fd4162ef1957fd9caefccb /src/xine-engine/audio_decoder.c | |
parent | 40ff01806b091bd7c5419d8f411906d504d33252 (diff) | |
download | xine-lib-96056accd3b60b48527d521b85a3d50d78d3d42f.tar.gz xine-lib-96056accd3b60b48527d521b85a3d50d78d3d42f.tar.bz2 |
metronom logic changed
CVS patchset: 1030
CVS date: 2001/11/13 21:47:57
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 0e920f477..797059eb5 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.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_decoder.c,v 1.51 2001/11/10 13:48:03 guenter Exp $ + * $Id: audio_decoder.c,v 1.52 2001/11/13 21:47:59 heikos Exp $ * * * functions that implement audio decoding @@ -52,14 +52,17 @@ void *audio_decoder_loop (void *this_gen) { while (running) { - /* printf ("audio_loop: waiting for package...\n"); */ +#ifdef AUDIO_DECODER_LOG + printf ("audio_loop: waiting for package...\n"); +#endif buf = this->audio_fifo->get (this->audio_fifo); - /* + +#ifdef AUDIO_DECODER_LOG printf ("audio_loop: got package pts = %d, type = %08x\n", buf->PTS, buf->type); - */ +#endif if (buf->input_pos) this->cur_input_pos = buf->input_pos; @@ -140,6 +143,7 @@ void *audio_decoder_loop (void *this_gen) { if (this->cur_audio_decoder_plugin) { this->cur_audio_decoder_plugin->close (this->cur_audio_decoder_plugin); this->cur_audio_decoder_plugin = NULL; + this->audio_type = 0; } this->metronom->expect_audio_discontinuity (this->metronom); @@ -274,7 +278,7 @@ void audio_decoder_init (xine_t *this) { return; } - this->audio_fifo = fifo_buffer_new (1500, 8192); + this->audio_fifo = fifo_buffer_new (20, 8192); this->audio_channel = -1; this->audio_channel_suggested = -1; this->audio_type = 0; |