summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gst/mxf/mxfmux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c
index 7fa7a5fa..fdc1bc61 100644
--- a/gst/mxf/mxfmux.c
+++ b/gst/mxf/mxfmux.c
@@ -932,7 +932,7 @@ gst_mxf_mux_create_metadata (GstMXFMux * mux)
/* Sort descriptors at the correct places */
{
GList *l;
- GList *descriptors;
+ GList *descriptors = NULL;
for (l = mux->metadata_list; l; l = l->next) {
MXFMetadataBase *m = l->data;
@@ -946,6 +946,8 @@ gst_mxf_mux_create_metadata (GstMXFMux * mux)
}
}
+ g_assert (descriptors != NULL);
+
for (l = mux->metadata_list; l; l = l->next) {
MXFMetadataBase *m = l->data;
GList *s;