mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
omxvideoenc: Free pending frames after draining the component
This commit is contained in:
parent
636cdd31bf
commit
0b301021de
1 changed files with 3 additions and 1 deletions
|
@ -1100,6 +1100,9 @@ gst_omx_video_enc_reset (GstBaseVideoEncoder * encoder)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Resetting encoder");
|
||||
|
||||
if (self->started)
|
||||
gst_omx_video_enc_drain (self);
|
||||
|
||||
/* FIXME: Workaround for
|
||||
* https://bugzilla.gnome.org/show_bug.cgi?id=654529
|
||||
*
|
||||
|
@ -1111,7 +1114,6 @@ gst_omx_video_enc_reset (GstBaseVideoEncoder * encoder)
|
|||
GST_BASE_VIDEO_CODEC (self)->frames = NULL;
|
||||
|
||||
if (self->started) {
|
||||
gst_omx_video_enc_drain (self);
|
||||
self->started = FALSE;
|
||||
|
||||
gst_omx_port_set_flushing (self->in_port, TRUE);
|
||||
|
|
Loading…
Reference in a new issue