mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
ebc19d19bb
commit
09cbe4cd03
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue