ghostpad: use gst_pad_get_peer to acquire a reference to the target pad
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 6 Mar 2014 11:01:40 +0000 (13:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 6 Mar 2014 19:46:28 +0000 (20:46 +0100)
commit5973f8c2cafc40e1d3d00f6b00e39a2886db9655
tree7579fae9849a3749fd61e3dac8d90c67bc7f2dd9
parent4fc671e801c64d8ea329bf2a29485240db3f0bc3
ghostpad: use gst_pad_get_peer to acquire a reference to the target pad

This ensures that the lock of the internal pad is held while referencing
it's peer (= the target pad), which ensures that the peer is not
going to be unlinked/destroyed in the meantime.

https://bugzilla.gnome.org/show_bug.cgi?id=725809
gst/gstghostpad.c