mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-28 23:02:22 +00:00
pwg: rename variable
The filter variable was used twice for different things. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692432
This commit is contained in:
parent
36d8f6b925
commit
74e2a8b139
1 changed files with 4 additions and 4 deletions
|
@ -537,14 +537,14 @@ gst_my_filter_query (GstPad *pad, GstObject * parent, GstQuery * query)
|
||||||
case GST_QUERY_CAPS
|
case GST_QUERY_CAPS
|
||||||
{
|
{
|
||||||
GstPad *otherpad;
|
GstPad *otherpad;
|
||||||
GstCaps *temp, *caps, *filter, *tcaps;
|
GstCaps *temp, *caps, *filt, *tcaps;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
otherpad = (pad == filter->srcpad) ? filter->sinkpad :
|
otherpad = (pad == filter->srcpad) ? filter->sinkpad :
|
||||||
filter->srcpad;
|
filter->srcpad;
|
||||||
caps = gst_pad_get_allowed_caps (otherpad);
|
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
|
/* We support *any* samplerate, indifferent from the samplerate
|
||||||
* supported by the linked elements on both sides. */
|
* supported by the linked elements on both sides. */
|
||||||
|
@ -564,8 +564,8 @@ gst_my_filter_query (GstPad *pad, GstObject * parent, GstQuery * query)
|
||||||
caps = temp;
|
caps = temp;
|
||||||
}
|
}
|
||||||
/* filter against the query filter when needed */
|
/* filter against the query filter when needed */
|
||||||
if (filter) {
|
if (filt) {
|
||||||
temp = gst_caps_intersect (caps, filter);
|
temp = gst_caps_intersect (caps, filt);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
caps = temp;
|
caps = temp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue