caps: Fix null pointer dereference on invalid static caps
authorJan Schmidt <jan@centricular.com>
Mon, 2 Jan 2017 15:11:27 +0000 (02:11 +1100)
committerJan Schmidt <jan@centricular.com>
Mon, 2 Jan 2017 15:21:10 +0000 (02:21 +1100)
commit269699f621d3d937e590e426c4dec618ef75f2cb
tree319820f08fd343bbdcf4020e86c45efe9861f282
parentd118ed3deb78b224a298cecbf76e9f4bafed555c
caps: Fix null pointer dereference on invalid static caps

A typo in a static caps string may result in failure to
deserialise it, so don't dereference the result without
checking.
gst/gstcaps.c