From c073a6c779b0dffe765197a1fadc87cbfb58133b Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Fri, 25 Apr 2014 17:58:42 -0400 Subject: [PATCH] qtdemux: initialize caps pointer to null 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 0bc1a7263a..c621eae1cb 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -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) {