omxvideodec: Free pending frames after draining component

This commit is contained in:
Sebastian Dröge 2011-11-07 14:00:47 +01:00
parent 0b301021de
commit 9151617d39

View file

@ -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);