mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
baseparse: Clear queued frames with other queues
This commit is contained in:
parent
36f999ab64
commit
f4040d3f6b
1 changed files with 4 additions and 4 deletions
|
@ -456,6 +456,10 @@ gst_base_parse_clear_queues (GstBaseParse * parse)
|
|||
g_list_free (parse->priv->detect_buffers);
|
||||
parse->priv->detect_buffers = NULL;
|
||||
parse->priv->detect_buffers_size = 0;
|
||||
|
||||
g_queue_foreach (&parse->priv->queued_frames,
|
||||
(GFunc) gst_base_parse_frame_free, NULL);
|
||||
g_queue_clear (&parse->priv->queued_frames);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -485,10 +489,6 @@ gst_base_parse_finalize (GObject * object)
|
|||
g_list_free (parse->priv->pending_events);
|
||||
parse->priv->pending_events = NULL;
|
||||
|
||||
g_queue_foreach (&parse->priv->queued_frames,
|
||||
(GFunc) gst_base_parse_frame_free, NULL);
|
||||
g_queue_clear (&parse->priv->queued_frames);
|
||||
|
||||
if (parse->priv->index) {
|
||||
gst_object_unref (parse->priv->index);
|
||||
parse->priv->index = NULL;
|
||||
|
|
Loading…
Reference in a new issue