From: Edward Hervey Date: Fri, 4 Jun 2010 09:44:09 +0000 (+0200) Subject: videomixer: if we're not linked downstream, we can do any format X-Git-Tag: RELEASE-0.10.24~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ff87c0fb9e93eb956715adc46c32704370556ab;p=platform%2Fupstream%2Fgst-plugins-good.git 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. --- diff --git a/gst/videomixer/videomixer.c b/gst/videomixer/videomixer.c index 1f57565..22740e6 100644 --- a/gst/videomixer/videomixer.c +++ b/gst/videomixer/videomixer.c @@ -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);