diff options
author | Matthew Waters <matthew@centricular.com> | 2016-06-28 13:51:22 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-06-29 18:04:28 +1000 |
commit | 989200820d43c78fb179d7984827800d83787390 (patch) | |
tree | 4e26370accaa68b3e7b96610aed3b518c57766f9 /sys/androidmedia | |
parent | 6958b7a0147334e6d02c30f6f236fbd7e1089081 (diff) | |
download | gstreamer-plugins-bad-989200820d43c78fb179d7984827800d83787390.tar.gz |
glmemory: add the texture type to allocate to parameters
Rather than assuming something. e.g. zerocopy on iOS with GLES3 requires
the use of Luminance/Luminance Alpha formats and does not work with
Red/RG textures.
Diffstat (limited to 'sys/androidmedia')
-rw-r--r-- | sys/androidmedia/gstamcvideodec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 7c99be098..397b5857b 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -1354,7 +1354,8 @@ retry: (GST_GL_MEMORY_ALLOCATOR_NAME)); params = gst_gl_video_allocation_params_new (self->gl_context, NULL, - &state->info, 0, NULL, GST_GL_TEXTURE_TARGET_EXTERNAL_OES); + &state->info, 0, NULL, GST_GL_TEXTURE_TARGET_EXTERNAL_OES, + GST_VIDEO_GL_TEXTURE_TYPE_RGBA); self->oes_mem = (GstGLMemory *) gst_gl_base_memory_alloc (base_mem_alloc, (GstGLAllocationParams *) params); |