From 329fe3eea497de96a9c2824b0028163be273078a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 25 Nov 2016 01:06:45 +0200 Subject: [PATCH] mxfmetadata: Add missing NULL check --- gst/mxf/mxfmetadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index 5dc55c7057..2f21962765 100644 --- a/gst/mxf/mxfmetadata.c +++ b/gst/mxf/mxfmetadata.c @@ -6499,7 +6499,7 @@ mxf_descriptive_metadata_new (guint8 scheme, guint32 type, return NULL; } - for (i = 0; i < _dm_schemes->len; i++) { + for (i = 0; _dm_schemes && i < _dm_schemes->len; i++) { _MXFDescriptiveMetadataScheme *data = &g_array_index (_dm_schemes, _MXFDescriptiveMetadataScheme, i);