gl: use GST_CAT_ERROR instead of GST_ERROR_OBJECT
authorJulien Isorce <julien.isorce@collabora.co.uk>
Tue, 6 May 2014 10:21:56 +0000 (11:21 +0100)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Tue, 6 May 2014 14:39:12 +0000 (15:39 +0100)
It fixes segault when GST_DEBUG is at least level 1 and eglCreateImage fails

gst-libs/gst/gl/egl/gsteglimagememory.c

index e4a58d3..665f4cc 100644 (file)
@@ -563,7 +563,7 @@ gst_egl_image_memory_setup_buffer (GstGLContext * ctx, GstVideoInfo * info,
 
 mem_error:
   {
-    GST_ERROR_OBJECT (GST_CAT_DEFAULT, "Failed to create EGLImage");
+    GST_CAT_ERROR (GST_CAT_DEFAULT, "Failed to create EGLImage");
 
     for (i = 0; i < 3; i++) {
       if (client_buffer_tex[i])