[592/906] memory: update for up/download API changes
authorMatthew Waters <ystreet00@gmail.com>
Tue, 25 Sep 2012 06:01:54 +0000 (16:01 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:25 +0000 (19:31 +0000)
gst-libs/gst/gl/gstglmemory.c

index 3d29e2d..5e9af90 100644 (file)
@@ -60,9 +60,10 @@ _gl_mem_init (GstGLMemory * mem, GstAllocator * allocator, GstMemory * parent,
   mem->notify = notify;
   mem->user_data = user_data;
   mem->wrapped = FALSE;
-  mem->upload = gst_gl_display_find_upload (display, v_format, width, height);
-  mem->download =
-      gst_gl_display_find_download (display, v_format, width, height);
+  mem->upload = gst_gl_display_find_upload (display, v_format,
+      width, height, width, height);
+  mem->download = gst_gl_display_find_download (display, v_format,
+      width, height);
 
   GST_CAT_DEBUG (GST_CAT_GL_MEMORY,
       "new GL texture memory:%p format:%u dimensions:%ux%u", mem, v_format,
@@ -109,7 +110,7 @@ _gl_mem_map (GstGLMemory * gl_mem, gsize maxsize, GstMapFlags flags)
         if (!GST_GL_MEMORY_FLAG_IS_SET (gl_mem,
                 GST_GL_MEMORY_FLAG_UPLOAD_INITTED)) {
           gst_gl_upload_init_format (gl_mem->upload, gl_mem->v_format,
-              gl_mem->width, gl_mem->height);
+              gl_mem->width, gl_mem->height, gl_mem->width, gl_mem->height);
           GST_GL_MEMORY_FLAG_SET (gl_mem, GST_GL_MEMORY_FLAG_UPLOAD_INITTED);
         }