ccconverter: tighten up a couple of NULL checks

CID 1463347
CID 1463346
CID 1463345

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1262>
This commit is contained in:
Matthew Waters 2020-05-12 16:01:42 +10:00
parent ebc19d19bb
commit 09cbe4cd03

View file

@ -1141,9 +1141,9 @@ copy_from_stored_data (GstCCConverter * self, guint8 * out_ccp,
{
guint ccp_in_size = 0, cea608_1_in_size = 0, cea608_2_in_size = 0;
g_assert (out_ccp || !ccp_size);
g_assert (cea608_1 || !cea608_1_len);
g_assert (cea608_2 || !cea608_2_len);
g_assert ((out_ccp && ccp_size) || (!out_ccp && !ccp_size));
g_assert ((cea608_1 && cea608_1_len) || (!cea608_1 && !cea608_1_len));
g_assert ((cea608_2 && cea608_2_len) || (!cea608_2 && !cea608_2_len));
if (ccp_size) {
ccp_in_size = *ccp_size;