From 8dbf48f5bfdca99519884636bb3ce04d465e8f09 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 24 Jan 2013 15:50:17 +0100 Subject: [PATCH] pwg: rename variable The filter variable was used twice for different things. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692432 --- docs/pwg/advanced-negotiation.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pwg/advanced-negotiation.xml b/docs/pwg/advanced-negotiation.xml index bc0ecbb..e6ec035 100644 --- a/docs/pwg/advanced-negotiation.xml +++ b/docs/pwg/advanced-negotiation.xml @@ -537,14 +537,14 @@ gst_my_filter_query (GstPad *pad, GstObject * parent, GstQuery * query) case GST_QUERY_CAPS { GstPad *otherpad; - GstCaps *temp, *caps, *filter, *tcaps; + GstCaps *temp, *caps, *filt, *tcaps; gint i; otherpad = (pad == filter->srcpad) ? filter->sinkpad : filter->srcpad; caps = gst_pad_get_allowed_caps (otherpad); - gst_query_parse_caps (query, &filter); + gst_query_parse_caps (query, &filt); /* We support *any* samplerate, indifferent from the samplerate * supported by the linked elements on both sides. */ @@ -564,8 +564,8 @@ gst_my_filter_query (GstPad *pad, GstObject * parent, GstQuery * query) caps = temp; } /* filter against the query filter when needed */ - if (filter) { - temp = gst_caps_intersect (caps, filter); + if (filt) { + temp = gst_caps_intersect (caps, filt); gst_caps_unref (caps); caps = temp; } -- 2.7.4