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:
parent
0143418e0c
commit
613a75ad92
@ -590,9 +590,8 @@ retry:
|
|||||||
gst_util_uint64_scale (buffer_info.presentation_time_us, GST_USECOND,
|
gst_util_uint64_scale (buffer_info.presentation_time_us, GST_USECOND,
|
||||||
1);
|
1);
|
||||||
|
|
||||||
/* FIXME: Assuming we get a single frame per output buffer */
|
|
||||||
flow_ret =
|
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) {
|
if (is_eos || flow_ret == GST_FLOW_UNEXPECTED) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user