summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-29 11:50:44 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-06-29 11:50:44 +0200
commit867d51fb31527d169eb1126abb6ae579028946f3 (patch)
tree7127222bb3e3835f2d91e2addae8f7e8ea40512d
parentcd6422a37272bfd47ce24c9762e4edb1b7b5e682 (diff)
downloadgst-plugins-bad-867d51fb31527d169eb1126abb6ae579028946f3.tar.gz
gst-plugins-bad-867d51fb31527d169eb1126abb6ae579028946f3.tar.bz2
gst-plugins-bad-867d51fb31527d169eb1126abb6ae579028946f3.zip
frei0r: Use fixed caps on the filter pads
This is required because we have to create a new frei0r instance for any caps changes and the instances can have history. Just creating a new instance during playback can result in bad output right after the caps change.
-rw-r--r--gst/frei0r/gstfrei0rfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/frei0r/gstfrei0rfilter.c b/gst/frei0r/gstfrei0rfilter.c
index 43d8fc67..174d8c51 100644
--- a/gst/frei0r/gstfrei0rfilter.c
+++ b/gst/frei0r/gstfrei0rfilter.c
@@ -195,6 +195,8 @@ gst_frei0r_filter_init (GstFrei0rFilter * self, GstFrei0rFilterClass * klass)
{
self->property_cache =
gst_frei0r_property_cache_init (klass->properties, klass->n_properties);
+ gst_pad_use_fixed_caps (GST_BASE_TRANSFORM_SINK_PAD (self));
+ gst_pad_use_fixed_caps (GST_BASE_TRANSFORM_SRC_PAD (self));
}
gboolean