projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
028efb7
)
mxfmux: Fix uninitialized variable compiler warning
author
Tristan Matthews
<le.businessman@gmail.com>
Sun, 10 May 2009 08:40:36 +0000
(10:40 +0200)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Sun, 10 May 2009 08:41:41 +0000
(10:41 +0200)
This will always be set to something but gcc didn't detect
this. Fixes bug #582013.
gst/mxf/mxfmux.c
patch
|
blob
|
history
diff --git
a/gst/mxf/mxfmux.c
b/gst/mxf/mxfmux.c
index 7fa7a5fafa3241a6f9d600fbb058c18314115301..fdc1bc616080035935de4ab7bc3c9132e9f82970 100644
(file)
--- 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;