gst: Don't pass miniobjects to GST_DEBUG_OBJECT() and similar macros
authorSebastian Dröge <sebastian@centricular.com>
Mon, 30 Sep 2019 08:49:35 +0000 (11:49 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 1 Oct 2019 13:45:31 +0000 (13:45 +0000)
commit0c6f5b3e4c3dc55e684bca1e3fc9a2a9b74407b9
tree688d1a078556bc662e578f576beada663080cb77
parent3ffd1e4f1d24485253cad05f752aa34c257409d3
gst: Don't pass miniobjects to GST_DEBUG_OBJECT() and similar macros

The argument must be at least a GObject according to the GstLogFunction
definition, and while the default C log function handles miniobjects
just fine this is crashing bindings and user-supplied log functions that
(rightfully) don't expect anything but GObjects.
gst/gstbuffer.c
gst/gstcaps.c