pad: Set caps on pad before checking if the pad is linked
authorStas Sergeev <stsp@users.sourceforge.net>
Tue, 13 Sep 2011 13:04:31 +0000 (17:04 +0400)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 19 Sep 2011 12:08:16 +0000 (14:08 +0200)
commitb090a376d4c6f5e797e2c24134020c9e727a72ab
tree00f4abcc8d42222fe09667b0ae2d045346403b05
parent7be3899653ed7dfe31789e657a68735886a1ae15
pad: Set caps on pad before checking if the pad is linked

This allows the setcaps handler and notify::caps to link
the pad downstream and doesn't require hacks to always
provide a peer to the pad, like in decodebin2.
gst/gstpad.c