mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
vp8decoder: Drain the output queue on EOS/finish
The finish() virtual method was flushing the queue, instead push the remaining buffers. It is not required to reset in finish() unlike drain(). This a regression causing last frame to always be lost. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2333>
This commit is contained in:
parent
e5e2b6a652
commit
2696bcd9e2
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ gst_vp8_decoder_finish (GstVideoDecoder * decoder)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "finish");
|
||||
|
||||
gst_vp8_decoder_reset (self);
|
||||
gst_vp8_decoder_drain_output_queue (GST_VP8_DECODER (decoder), 0);
|
||||
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue