mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
frei0rmixer: replace accept-caps with caps query
It wants to check if upstream can produce a certain format, accept-caps might only check if the next element can produce it.
This commit is contained in:
parent
04ec728722
commit
f94079c1a9
1 changed files with 5 additions and 1 deletions
|
@ -216,8 +216,12 @@ gst_frei0r_mixer_set_caps (GstFrei0rMixer * self, GstPad * pad, GstCaps * caps)
|
|||
}
|
||||
}
|
||||
} else if (!gst_caps_is_equal (caps, self->caps)) {
|
||||
if (gst_pad_peer_query_accept_caps (pad, self->caps))
|
||||
GstCaps *upstream_caps;
|
||||
|
||||
upstream_caps = gst_pad_peer_query_caps (pad, NULL);
|
||||
if (gst_caps_can_intersect (self->caps, upstream_caps))
|
||||
gst_pad_push_event (pad, gst_event_new_reconfigure ());
|
||||
gst_caps_unref (upstream_caps);
|
||||
ret = FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue