mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
omxvideodec: Free all pending frames when resetting the decoder
Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=654529
This commit is contained in:
parent
af159705c9
commit
f5690ff412
1 changed files with 10 additions and 0 deletions
|
@ -758,6 +758,16 @@ gst_omx_video_dec_reset (GstBaseVideoDecoder * decoder)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Resetting decoder");
|
||||
|
||||
/* FIXME: Workaround for
|
||||
* https://bugzilla.gnome.org/show_bug.cgi?id=654529
|
||||
*/
|
||||
GST_OBJECT_LOCK (self);
|
||||
g_list_foreach (GST_BASE_VIDEO_CODEC (self)->frames,
|
||||
(GFunc) gst_base_video_codec_free_frame, NULL);
|
||||
g_list_free (GST_BASE_VIDEO_CODEC (self)->frames);
|
||||
GST_BASE_VIDEO_CODEC (self)->frames = NULL;
|
||||
GST_OBJECT_UNLOCK (self);
|
||||
|
||||
gst_omx_port_set_flushing (self->in_port, TRUE);
|
||||
gst_omx_port_set_flushing (self->out_port, TRUE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue