summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorTristan Matthews <le.businessman@gmail.com>2009-05-10 10:40:36 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-10 10:41:41 +0200
commit6451febd143e8d214718c6d0e1b2355f52806b50 (patch)
tree39d56c477124dd566eb207ea28f64cb19c9db22d /gst
parent028efb726c73504887e7d40198d7114c029634bb (diff)
downloadgst-plugins-bad-6451febd143e8d214718c6d0e1b2355f52806b50.tar.gz
gst-plugins-bad-6451febd143e8d214718c6d0e1b2355f52806b50.tar.bz2
gst-plugins-bad-6451febd143e8d214718c6d0e1b2355f52806b50.zip
mxfmux: Fix uninitialized variable compiler warning
This will always be set to something but gcc didn't detect this. Fixes bug #582013.
Diffstat (limited to 'gst')
-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;