diff options
author | Rich J Wareham <richwareham@users.sourceforge.net> | 2001-09-14 21:25:55 +0000 |
---|---|---|
committer | Rich J Wareham <richwareham@users.sourceforge.net> | 2001-09-14 21:25:55 +0000 |
commit | 2a6944aa21b4184d8174b74d9c0fbff807c16c4e (patch) | |
tree | afa0258b9fa0bbca72511b67dfd28f327d6c9f03 /src/xine-engine/audio_decoder.c | |
parent | 01acad2a27f178995bcfda3f752fd1dac545c109 (diff) | |
download | xine-lib-2a6944aa21b4184d8174b74d9c0fbff807c16c4e.tar.gz xine-lib-2a6944aa21b4184d8174b74d9c0fbff807c16c4e.tar.bz2 |
Added some stuff to make still-frame menus work a bit better, allowed events for UI to find language of audio/spu track
CVS patchset: 636
CVS date: 2001/09/14 21:25:55
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 74a88c2df..eb4761616 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.39 2001/09/12 22:18:47 guenter Exp $ + * $Id: audio_decoder.c,v 1.40 2001/09/14 21:25:55 richwareham Exp $ * * * functions that implement audio decoding @@ -192,8 +192,15 @@ void *audio_decoder_loop (void *this_gen) { if (decoder) { if (this->cur_audio_decoder_plugin != decoder) { - if (this->cur_audio_decoder_plugin) + if (this->cur_audio_decoder_plugin) { this->cur_audio_decoder_plugin->close (this->cur_audio_decoder_plugin); + + /* Since we are changing decoders, warn metronom of a possible + * PTS discontinuity */ + + this->metronom->expect_audio_discontinuity (this->metronom); + this->metronom->expect_video_discontinuity (this->metronom); + } this->cur_audio_decoder_plugin = decoder; this->cur_audio_decoder_plugin->init (this->cur_audio_decoder_plugin, this->audio_out); |