videomixer: if we're not linked downstream, we can do any format

Stupid me, assuming _get_allowed_caps() would actually return the
pad templates if there was no peer.
This commit is contained in:
Edward Hervey 2010-06-04 11:44:09 +02:00
parent 952fd666b3
commit 2ff87c0fb9

View file

@ -391,6 +391,10 @@ gst_videomixer_pad_sink_getcaps (GstPad * pad)
/* Get downstream allowed caps */
res = gst_pad_get_allowed_caps (mix->srcpad);
if (G_UNLIKELY (res == NULL)) {
res = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
goto beach;
}
GST_VIDEO_MIXER_STATE_LOCK (mix);