From ef00d85f16648e087a1474a149ed8177623e4d97 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 29 Sep 2014 08:54:29 +0200 Subject: [PATCH] glcontext: Initialize variable Avoids the following warning: gstglcontext.c:647:58: error: 'prev' may be used uninitialized in this function [-Werror=maybe-uninitialized] --- gst-libs/gst/gl/gstglcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 73dc472421..783fb04509 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -585,7 +585,7 @@ _share_group_descendant (GstGLContext * context, GstGLContext * other_context, GstGLContext ** root) { GstGLContext *next = gst_object_ref (context); - GstGLContext *prev; + GstGLContext *prev = NULL; /* given a context tree where --> means "has other gl context": *