qtwrapper: Decode audio until all input data is consumed
authorMartin Storsjo <martin@martin.st>
Thu, 2 Sep 2010 20:31:23 +0000 (23:31 +0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 30 May 2011 06:46:11 +0000 (08:46 +0200)
The special return value is returned from our buffer callback
when all input data has been consumed.

sys/qtwrapper/audiodecoders.c

index d7791d04fd97b3b6c461e0c20700f781ee0a9563..5a29c47df009ee1fd883bf172bd46b58a345204a 100644 (file)
@@ -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);