From 676bd995b03efc33505e5b31f3a13409f8e73db2 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Fri, 20 Nov 2009 17:33:21 +0100 Subject: [PATCH] frei0r: Fix compilation warnings. --- gst/frei0r/gstfrei0rmixer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gst/frei0r/gstfrei0rmixer.c b/gst/frei0r/gstfrei0rmixer.c index 8f3ee4b..cd315e1 100644 --- a/gst/frei0r/gstfrei0rmixer.c +++ b/gst/frei0r/gstfrei0rmixer.c @@ -39,6 +39,7 @@ static void gst_frei0r_mixer_reset (GstFrei0rMixer * self) { GstFrei0rMixerClass *klass = GST_FREI0R_MIXER_GET_CLASS (self); + GstEvent **p_ev; if (self->f0r_instance) { klass->ftable->destruct (self->f0r_instance); @@ -51,7 +52,8 @@ gst_frei0r_mixer_reset (GstFrei0rMixer * self) self->property_cache = NULL; gst_caps_replace (&self->caps, NULL); - gst_event_replace (&self->newseg_event, NULL); + p_ev = &self->newseg_event; + gst_event_replace (p_ev, NULL); self->fmt = GST_VIDEO_FORMAT_UNKNOWN; self->width = self->height = 0; @@ -510,13 +512,15 @@ gst_frei0r_mixer_sink0_event (GstPad * pad, GstEvent * event) { GstFrei0rMixer *self = GST_FREI0R_MIXER (gst_pad_get_parent (pad)); gboolean ret = FALSE; + GstEvent **p_ev; GST_DEBUG ("Got %s event on pad %s:%s", GST_EVENT_TYPE_NAME (event), GST_DEBUG_PAD_NAME (pad)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_NEWSEGMENT: - gst_event_replace (&self->newseg_event, event); + p_ev = &self->newseg_event; + gst_event_replace (p_ev, event); break; default: break; -- 2.7.4