mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
omxvideodec: Free pending frames after draining component
This commit is contained in:
parent
0b301021de
commit
9151617d39
1 changed files with 3 additions and 1 deletions
|
@ -1170,6 +1170,9 @@ gst_omx_video_dec_reset (GstBaseVideoDecoder * decoder)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Resetting decoder");
|
||||
|
||||
if (self->started)
|
||||
gst_omx_video_dec_drain (self);
|
||||
|
||||
/* FIXME: Workaround for
|
||||
* https://bugzilla.gnome.org/show_bug.cgi?id=654529
|
||||
*
|
||||
|
@ -1181,7 +1184,6 @@ gst_omx_video_dec_reset (GstBaseVideoDecoder * decoder)
|
|||
GST_BASE_VIDEO_CODEC (self)->frames = NULL;
|
||||
|
||||
if (self->started) {
|
||||
gst_omx_video_dec_drain (self);
|
||||
self->started = FALSE;
|
||||
|
||||
gst_omx_port_set_flushing (self->in_port, TRUE);
|
||||
|
|
Loading…
Reference in a new issue