diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-20 23:12:58 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-20 23:12:58 +0000 |
commit | d1eca278036b0abedb86545257a7c1b026d1d0d8 (patch) | |
tree | 6340dbab0f37669ddf38f02f09729d6863bf7d7d /src/xine-engine/audio_decoder.c | |
parent | f461a6cb075255690fcab513648911110b63dca6 (diff) | |
download | xine-lib-d1eca278036b0abedb86545257a7c1b026d1d0d8.tar.gz xine-lib-d1eca278036b0abedb86545257a7c1b026d1d0d8.tar.bz2 |
steps towards dvd playback:
- cleanup / more types of discontinuity handling in metronom
- disc detection based on nav-packets
small video_out fix to make exiting xine easier in case it gets stuck
CVS patchset: 1599
CVS date: 2002/03/20 23:12:58
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 2ed4c0522..e85aa40a1 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.66 2002/03/18 22:45:53 guenter Exp $ + * $Id: audio_decoder.c,v 1.67 2002/03/20 23:12:58 guenter Exp $ * * * functions that implement audio decoding @@ -84,7 +84,7 @@ void *audio_decoder_loop (void *this_gen) { this->audio_finished = 0; pthread_mutex_unlock (&this->finished_lock); - this->metronom->audio_stream_start (this->metronom); + this->metronom->handle_audio_discontinuity (this->metronom, DISC_STREAMSTART, 0); break; @@ -129,9 +129,11 @@ void *audio_decoder_loop (void *this_gen) { break; case BUF_CONTROL_DISCONTINUITY: - printf ("audio_decoder: discontinuity ahead\n"); + this->metronom->handle_audio_discontinuity (this->metronom, DISC_RELATIVE, buf->disc_off); + break; - this->metronom->expect_audio_discontinuity (this->metronom, buf->disc_off); + case BUF_CONTROL_NEWPTS: + this->metronom->handle_audio_discontinuity (this->metronom, DISC_ABSOLUTE, buf->disc_off); break; case BUF_CONTROL_AUDIO_CHANNEL: |