From: Sebastian Dröge Date: Mon, 7 Nov 2011 13:00:35 +0000 (+0100) Subject: omxvideoenc: Free pending frames after draining the component X-Git-Tag: 1.19.3~501^2~871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b301021deaa1e0cc80bb93c4dcc88d491aeea72;p=platform%2Fupstream%2Fgstreamer.git omxvideoenc: Free pending frames after draining the component --- diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index 7592a4e..586fbad 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -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);