baseparse: Clear queued frames with other queues

This commit is contained in:
Matej Knopp 2011-11-14 02:26:31 +01:00 committed by Sebastian Dröge
parent 36f999ab64
commit f4040d3f6b

View file

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