debugutils: Handle caps field values being NULL
authorSebastian Rasmussen <sebras@hotmail.com>
Sun, 6 Apr 2014 09:23:34 +0000 (11:23 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 6 Apr 2014 13:24:21 +0000 (14:24 +0100)
commite1e5183181f17a4dd342a3b64210b109131f2ed6
treeb46ec30d4235ad319d57bd6d043e4d9036292fe1
parent6c2c49a590073afa1a1334e052496377054f3e54
debugutils: Handle caps field values being NULL

GST_DEBUG_BIN_TO_DOT_FILE() would cause a segfault whenever it encountered an
element's caps that had a field value being NULL. Such fields are successfully
handled e.g. by GST_*_OBJECT(), and with this patch so does
GST_DEBUG_BIN_TO_DOT_FILE(). Even if string fields with a NULL value are
not supposed to be valid in caps, such caps can be created.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727701
gst/gstdebugutils.c