imagefreeze: Set fixed caps on the correct pad

This makes the sink getcaps function actually used instead of using
the fixed caps function for it.
This commit is contained in:
Sebastian Dröge 2010-05-05 12:23:56 +02:00 committed by Tim-Philipp Müller
parent e258a91f8b
commit 2e5262cda2

View file

@ -128,7 +128,7 @@ gst_image_freeze_init (GstImageFreeze * self, GstImageFreezeClass * g_class)
GST_DEBUG_FUNCPTR (gst_image_freeze_src_query));
gst_pad_set_query_type_function (self->srcpad,
GST_DEBUG_FUNCPTR (gst_image_freeze_src_query_type));
gst_pad_use_fixed_caps (self->sinkpad);
gst_pad_use_fixed_caps (self->srcpad);
gst_element_add_pad (GST_ELEMENT (self), self->srcpad);
gst_image_freeze_reset (self);