From aaa660ac9dfe55fbf6b1737071c9f4b303116557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 29 Dec 2015 18:01:30 +0200 Subject: [PATCH] glbasememory: Remove bogus NULL check CID 1346534 --- gst-libs/gst/gl/gstglbasememory.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gst-libs/gst/gl/gstglbasememory.c b/gst-libs/gst/gl/gstglbasememory.c index a55603ade3..1988b327af 100644 --- a/gst-libs/gst/gl/gstglbasememory.c +++ b/gst-libs/gst/gl/gstglbasememory.c @@ -527,11 +527,6 @@ gst_gl_base_memory_memcpy (GstGLBaseMemory * src, GstGLBaseMemory * dest, if (!gst_gl_base_memory_alloc_data (GST_GL_BASE_MEMORY_CAST (dest))) return FALSE; - if (dest == NULL) { - GST_CAT_WARNING (GST_CAT_GL_BASE_MEMORY, "Could not copy GL Buffer"); - return FALSE; - } - if (!gst_memory_map ((GstMemory *) src, &sinfo, GST_MAP_READ)) { GST_CAT_WARNING (GST_CAT_GL_BASE_MEMORY, "could not read map source memory %p", src);