diff options
author | Julien Moutte <julien@fluendo.com> | 2009-11-20 17:33:21 +0100 |
---|---|---|
committer | Julien Moutte <julien@fluendo.com> | 2009-11-20 17:33:21 +0100 |
commit | 676bd995b03efc33505e5b31f3a13409f8e73db2 (patch) | |
tree | d554de281bad2f8516c535e929e1b480e9f6b7d6 /gst/frei0r | |
parent | 1f47dee944ae444d7d3197c1df0275986fe87e1d (diff) | |
download | gstreamer-plugins-bad-676bd995b03efc33505e5b31f3a13409f8e73db2.tar.gz |
frei0r: Fix compilation warnings.
Diffstat (limited to 'gst/frei0r')
-rw-r--r-- | gst/frei0r/gstfrei0rmixer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/frei0r/gstfrei0rmixer.c b/gst/frei0r/gstfrei0rmixer.c index 8f3ee4ba8..cd315e185 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; |