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)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 11 Aug 2019 11:56:08 +0000 (12:56 +0100)
commite47b01f3c7d4abc43fa2afa718e0f05f5f5a5298
treec1c04a9daef926c99d0fde06fdd7fe87700f6fca
parent21a0e02485ffedb9153c757869d35913df3aea11
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