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
parent 5b79423416
commit e064d280ea

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