From 6451febd143e8d214718c6d0e1b2355f52806b50 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Sun, 10 May 2009 10:40:36 +0200 Subject: mxfmux: Fix uninitialized variable compiler warning This will always be set to something but gcc didn't detect this. Fixes bug #582013. --- gst/mxf/mxfmux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1