From 9151617d39a5983ce64d9ae39eb6d4f125915b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 7 Nov 2011 14:00:47 +0100 Subject: [PATCH] omxvideodec: Free pending frames after draining component --- omx/gstomxvideodec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index d893474701..c2aad7378d 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -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);