qtdemux: initialize caps pointer to null
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 25 Apr 2014 21:58:42 +0000 (17:58 -0400)
committerLuis de Bethencourt <luis@debethencourt.com>
Fri, 25 Apr 2014 22:23:23 +0000 (18:23 -0400)
Make sure the caps pointer returns initialized when using it in
qtdemux_parse_tree ().

https://bugzilla.gnome.org/show_bug.cgi?id=728987

gst/isomp4/qtdemux.c

index 0bc1a72..c621eae 100644 (file)
@@ -10456,7 +10456,7 @@ static GstCaps *
 qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
     guint32 fourcc, const guint8 * stsd_data, gchar ** codec_name)
 {
-  GstCaps *caps;
+  GstCaps *caps = NULL;
   GstVideoFormat format = GST_VIDEO_FORMAT_UNKNOWN;
 
   switch (fourcc) {