[gst-cvs] gst-plugins-bad: mxfmux: Fix uninitialized variable compiler warning
Sebastian Dröge
slomo at kemper.freedesktop.org
Sun May 10 01:42:31 PDT 2009
Module: gst-plugins-bad
Branch: master
Commit: 6451febd143e8d214718c6d0e1b2355f52806b50
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6451febd143e8d214718c6d0e1b2355f52806b50
Author: Tristan Matthews <le.businessman at gmail.com>
Date: Sun May 10 10:40:36 2009 +0200
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 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c
index 7fa7a5f..fdc1bc6 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;
More information about the Gstreamer-commits
mailing list