From 01c4ae1b3043c108e7bc58b725217d8560d26bc8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 29 Sep 2002 20:51:19 +0000 Subject: [PATCH] Some quick fixes for FLAC 1.0.4 Original commit message from CVS: Some quick fixes for FLAC 1.0.4 --- ext/flac/gstflacdec.c | 4 ++-- ext/flac/gstflacenc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index 09e53041d..ac939c361 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -435,7 +435,7 @@ gst_flacdec_loop (GstElement *element) if (flacdec->init) { FLAC__seekable_stream_decoder_init (flacdec->decoder); - FLAC__seekable_stream_decoder_process_metadata (flacdec->decoder); + //FLAC__seekable_stream_decoder_process_metadata (flacdec->decoder); flacdec->init = FALSE; } @@ -455,7 +455,7 @@ gst_flacdec_loop (GstElement *element) flacdec->seek_pending = FALSE; } - res = FLAC__seekable_stream_decoder_process_one_frame (flacdec->decoder); + res = FLAC__seekable_stream_decoder_process_single (flacdec->decoder); if (FLAC__seekable_stream_decoder_get_state (flacdec->decoder) == FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM) { diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 40eeb1962..3316232c4 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -372,7 +372,7 @@ gst_flacenc_write_callback (const FLAC__StreamEncoder *encoder, flacenc = GST_FLACENC (client_data); if (flacenc->stopped) - return FLAC__STREAM_ENCODER_WRITE_OK; + return FLAC__STREAM_ENCODER_OK; outbuf = gst_buffer_new_and_alloc (bytes); @@ -386,7 +386,7 @@ gst_flacenc_write_callback (const FLAC__StreamEncoder *encoder, gst_pad_push (flacenc->srcpad, outbuf); - return FLAC__STREAM_ENCODER_WRITE_OK; + return FLAC__STREAM_ENCODER_OK; } static void -- 2.34.1