[0.11] gst-plugins-good: qtdemux: initialize variable to avoid undefined use

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Mon Jan 9 02:41:33 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 43986a661d588a4144a90db2cd7994d4cfc1f6ce
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=43986a661d588a4144a90db2cd7994d4cfc1f6ce

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Jan  9 11:36:58 2012 +0100

qtdemux: initialize variable to avoid undefined use

---

 gst/isomp4/qtdemux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 5bb9481..2b9053f 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -6649,7 +6649,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
           /* see annex I of the jpeg2000 spec */
           GNode *jp2h, *ihdr, *colr, *mjp2, *field, *prefix, *cmap, *cdef;
           const guint8 *data;
-          const gchar *colorspace;
+          const gchar *colorspace = NULL;
           gint ncomp = 0;
           guint32 ncomp_map = 0;
           gint32 *comp_map = NULL;



More information about the gstreamer-commits mailing list