glcontext: Initialize variable

Avoids the following warning:

gstglcontext.c:647:58: error: 'prev' may be used uninitialized in
 this function [-Werror=maybe-uninitialized]
This commit is contained in:
Edward Hervey 2014-09-29 08:54:29 +02:00 committed by Tim-Philipp Müller
parent 6b96a87003
commit ef00d85f16

View file

@ -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":
*