Pass -1 as number of frames to the base class

This will automatically do the right thing if timestamps are good enough
This commit is contained in:
Sebastian Dröge 2012-09-14 16:10:29 +02:00
parent 0143418e0c
commit 613a75ad92

View file

@ -590,9 +590,8 @@ retry:
gst_util_uint64_scale (buffer_info.presentation_time_us, GST_USECOND,
1);
/* FIXME: Assuming we get a single frame per output buffer */
flow_ret =
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (self), outbuf, 1);
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (self), outbuf, -1);
}
if (is_eos || flow_ret == GST_FLOW_UNEXPECTED) {