summaryrefslogtreecommitdiff
path: root/sys/applemedia/iosglmemory.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2017-03-13 14:28:47 +1100
committerMatthew Waters <matthew@centricular.com>2017-03-13 21:10:58 +1100
commit956c4d0bde4d6707ccae2b4ae6dfba8500e55217 (patch)
tree3357725e46e7294f3b398c13dd7fe391d7828692 /sys/applemedia/iosglmemory.c
parent04f8c7d7296aa278bd33e52db335c077a8a53d2a (diff)
gl/format: use our own GL format enum's instead of gstvideo's
They can describe in more detail (such as component sizes) the requested format.
Diffstat (limited to 'sys/applemedia/iosglmemory.c')
-rw-r--r--sys/applemedia/iosglmemory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/applemedia/iosglmemory.c b/sys/applemedia/iosglmemory.c
index c19f5f31d..7b7db9bc6 100644
--- a/sys/applemedia/iosglmemory.c
+++ b/sys/applemedia/iosglmemory.c
@@ -132,7 +132,7 @@ static GstIOSGLMemory *
_ios_gl_memory_new (GstGLContext * context,
GstAppleCoreVideoMemory * cv_mem,
GstGLTextureTarget target,
- GstVideoGLTextureType tex_type,
+ GstGLFormat tex_format,
guint tex_id,
GstVideoInfo * info,
guint plane,
@@ -144,7 +144,7 @@ _ios_gl_memory_new (GstGLContext * context,
mem->gl_mem.tex_id = tex_id;
mem->gl_mem.texture_wrapped = TRUE;
gst_gl_memory_init (&mem->gl_mem, _ios_gl_memory_allocator, NULL, context,
- target, tex_type, NULL, info, plane, valign, NULL, NULL);
+ target, tex_format, NULL, info, plane, valign, NULL, NULL);
mem->cv_mem = cv_mem;
mem->gl_data = gl_data;
mem->gl_notify = gl_notify;
@@ -158,12 +158,12 @@ GstIOSGLMemory *
gst_ios_gl_memory_new_wrapped (GstGLContext * context,
GstAppleCoreVideoMemory * cv_mem,
GstGLTextureTarget target,
- GstVideoGLTextureType tex_type,
+ GstGLFormat tex_format,
guint tex_id,
GstVideoInfo * info,
guint plane,
GstVideoAlignment * valign, gpointer gl_data, GDestroyNotify gl_notify)
{
- return _ios_gl_memory_new (context, cv_mem, target, tex_type, tex_id, info,
+ return _ios_gl_memory_new (context, cv_mem, target, tex_format, tex_id, info,
plane, valign, gl_data, gl_notify);
}