video-color: Deal with NULL colorimetry while converting from string
authorArun Raghavan <arun@arunraghavan.net>
Fri, 24 May 2019 13:22:58 +0000 (15:22 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 24 May 2019 14:37:14 +0000 (16:37 +0200)
commit326940f89a74ed7121107542442519e1d6121636
tree24ce46a1eaf2fe72515e58ce1be12d8d3fa356b0
parentaa759d4204a7b1f9815ad24ef629f4e04c62a8b1
video-color: Deal with NULL colorimetry while converting from string

This came up in the case where v4l2 sets caps with colorimetry=NULL, and
then tries to parse back the colorimetry, causing a crash in
gst_video_get_colorimetry() because of g_str_equal(). We fix this by
making sure the only caller of the function never calls it with a null
colorimetry string.
gst-libs/gst/video/video-color.c