bin: Switch `g_warning()`s to `GST_WARNING_OBJECT()`s when adding/removing an element...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 8 Nov 2021 13:30:18 +0000 (15:30 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 8 Nov 2021 20:31:44 +0000 (20:31 +0000)
commitddfd778c19565633a357dffc98a9b449abb9a230
tree0bbd3fad11acda4043574033f3171fb63f358eec
parent5ac1a12927614ea932dba8f44f26824d528f7791
bin: Switch `g_warning()`s to `GST_WARNING_OBJECT()`s when adding/removing an element to a bin fails

The failure conditions can be overidden by subclasses, and a boolean
return value is provided to the caller whether adding/removing the child
element has actually worked. The caller can then handle this
accordingly but flooding stderr with this is not very useful.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1320>
subprojects/gstreamer/gst/gstbin.c