From bd45e64d31fe2a60c7157e32cd7b3cf56715d9b1 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Fri, 20 Nov 2009 17:32:13 +0100 Subject: [PATCH] aacparse: Fix compilation warnings --- gst/aacparse/gstbaseparse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/aacparse/gstbaseparse.c b/gst/aacparse/gstbaseparse.c index 0febb37aa8..1e316a0844 100644 --- a/gst/aacparse/gstbaseparse.c +++ b/gst/aacparse/gstbaseparse.c @@ -314,15 +314,18 @@ static void gst_base_parse_finalize (GObject * object) { GstBaseParse *parse = GST_BASE_PARSE (object); + GstEvent **p_ev; g_mutex_free (parse->parse_lock); g_object_unref (parse->adapter); if (parse->pending_segment) { - gst_event_replace (&parse->pending_segment, NULL); + p_ev = &parse->pending_segment; + gst_event_replace (p_ev, NULL); } if (parse->close_segment) { - gst_event_replace (&parse->close_segment, NULL); + p_ev = &parse->close_segment; + gst_event_replace (p_ev, NULL); } if (parse->priv->cache) {