summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r--src/xine-engine/audio_decoder.c10
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: