summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-06-16 11:31:06 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-06-16 11:31:06 +0000
commit350df6326da8d16dbf516e823cb80a3313bd121a (patch)
treedec6a1a7118416e0acd6f4e393fdc44f2318b3ff
parent8c6d2c506a102109339347e039cb38a2047fef40 (diff)
gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_attached_file)
Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_attached_file) Init variable to NULL to avoid compiler warning.
-rw-r--r--ChangeLog6
-rw-r--r--gst/matroska/matroska-demux.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index f9a2990e..c2a68358 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-16 Tim-Philipp Müller <tim.muller at collabora co uk>
+
+ * gst/matroska/matroska-demux.c:
+ (gst_matroska_demux_parse_attached_file)
+ Init variable to NULL to avoid compiler warning.
+
2008-06-16 Sebastian Dröge <slomo@circular-chaos.org>
* gst/matroska/Makefile.am:
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 2a0d0f8b..a7a715ff 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -2567,12 +2567,9 @@ gst_matroska_demux_parse_attached_file (GstMatroskaDemux * demux,
}
if (filename && mimetype && data && datalen > 0) {
- GstBuffer *tagbuffer;
-
- GstCaps *caps;
-
GstTagImageType image_type = GST_TAG_IMAGE_TYPE_NONE;
-
+ GstBuffer *tagbuffer = NULL;
+ GstCaps *caps;
gchar *filename_lc = g_utf8_strdown (filename, -1);
GST_DEBUG_OBJECT (demux, "Creating tag for attachment with filename '%s', "