gl: check the correct GstGLMemory in basic_test
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 25 Apr 2014 20:18:07 +0000 (16:18 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:37 +0000 (19:31 +0000)
tests/check/libs/gstglmemory.c

index 5b29de6..6aaffdd 100644 (file)
@@ -82,7 +82,7 @@ GST_START_TEST (test_basic)
 
     /* copy the memory */
     mem2 = gst_memory_copy (mem, 0, -1);
-    fail_if (mem == NULL);
+    fail_if (mem2 == NULL);
     gl_mem2 = (GstGLMemory *) mem2;
 
     /* test params */