From d536b73e25403bfbdd6dcc558fb82d0e507ea8b3 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Thu, 2 Sep 2010 23:31:23 +0300 Subject: [PATCH] qtwrapper: Decode audio until all input data is consumed The special return value is returned from our buffer callback when all input data has been consumed. --- sys/qtwrapper/audiodecoders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/qtwrapper/audiodecoders.c b/sys/qtwrapper/audiodecoders.c index d7791d04fd..5a29c47df0 100644 --- a/sys/qtwrapper/audiodecoders.c +++ b/sys/qtwrapper/audiodecoders.c @@ -865,7 +865,7 @@ qtwrapper_audio_decoder_chain (GstPad * pad, GstBuffer * buf) GST_DEBUG_OBJECT (qtwrapper, "Read %d bytes, could have read up to %d bytes", realbytes, savedbytes); - } while (realbytes == savedbytes); + } while (status != NO_MORE_INPUT_DATA); beach: gst_buffer_unref (buf);