ghostpad: Deprecate gst_ghost_pad_construct()
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2020 09:26:46 +0000 (12:26 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2020 09:30:48 +0000 (12:30 +0300)
commit63c1945695474a8706909a7277d45b5c5d0c0a92
treebd67fb92973198ea2cb6fc2a28ae3745c6656b1c
parent57b263d620585119f52e98ec94c8ed78559d4b95
ghostpad: Deprecate gst_ghost_pad_construct()

Instead do everything it did as part of GObject::constructed() and
change the function to always return TRUE.

gst_ghost_pad_construct() was meant to be called by subclasses right
after construction of the object to finish construction as it can fail
in theory. In practice it's impossible for it to fail, even more so if
called directly from GObject::constructed(): The only failure condition
is if the newly created proxy pad already has a parent, which is
impossible at this point as nothing else can have a reference to it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/540>
gst/gstghostpad.c
gst/gstghostpad.h