mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
952fd666b3
commit
2ff87c0fb9
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue