capsfilter: don't prefer passthrough

Basetransform should not try to negotiate in passthrough mode but
respect the order of what we return in the transform_caps method.
A typical case is that you specify some specific new caps in the
caps property but also allow the current caps to pass.
This commit is contained in:
Wim Taymans 2012-10-04 11:18:19 +02:00
parent d5b81aba6a
commit fc5849ef11

View file

@ -128,6 +128,7 @@ gst_capsfilter_init (GstCapsFilter * filter)
{
GstBaseTransform *trans = GST_BASE_TRANSFORM (filter);
gst_base_transform_set_gap_aware (trans, TRUE);
gst_base_transform_set_prefer_passthrough (trans, FALSE);
filter->filter_caps = gst_caps_new_any ();
}