diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-12-11 15:30:05 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-12-11 15:30:05 +0000 |
commit | 7c6b15eb257aa005e3d01394c09ca1f48e0f7ab7 (patch) | |
tree | 58f548c3419ac4fee61fc00c5833002c400ccf43 /src/xine-engine/audio_decoder.c | |
parent | 1416e359d0bfcb59d2021d3904b50dc55bbfe466 (diff) | |
download | xine-lib-7c6b15eb257aa005e3d01394c09ca1f48e0f7ab7.tar.gz xine-lib-7c6b15eb257aa005e3d01394c09ca1f48e0f7ab7.tar.bz2 |
audio_decoder->reset() on discontinuities
CVS patchset: 1221
CVS date: 2001/12/11 15:30:05
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index b2bc1ac89..fa6a3582b 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.56 2001/11/20 12:41:57 miguelfreitas Exp $ + * $Id: audio_decoder.c,v 1.57 2001/12/11 15:30:06 miguelfreitas Exp $ * * * functions that implement audio decoding @@ -137,11 +137,8 @@ void *audio_decoder_loop (void *this_gen) { case BUF_CONTROL_AVSYNC_RESET: printf ("audio_decoder: discontinuity ahead\n"); - /* fixme ? */ 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->cur_audio_decoder_plugin->reset (this->cur_audio_decoder_plugin); } this->metronom->expect_audio_discontinuity (this->metronom); @@ -157,20 +154,6 @@ void *audio_decoder_loop (void *this_gen) { default: -#if 0 - while (this->audio_mute==2) { - xine_usec_sleep (50000); - } - - if (this->audio_mute) { - /* - lrb_add (this->audio_temp, buf); - continue; - */ - break; - } -#endif - xine_profiler_start_count (prof_audio_decode); if ( (buf->type & 0xFF000000) == BUF_AUDIO_BASE ) { |