mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
corevideotexturecache: Don't unconditionally use the CoreMedia meta on iOS
We might instead have a CoreVideo meta.
This commit is contained in:
parent
97bb963e95
commit
b51254395a
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ texture_from_buffer (GstCoreVideoTextureCache * cache,
|
||||||
CVOpenGLTextureCacheFlush (cache->cache, 0);
|
CVOpenGLTextureCacheFlush (cache->cache, 0);
|
||||||
#else
|
#else
|
||||||
CVOpenGLESTextureCacheCreateTextureFromImage (kCFAllocatorDefault,
|
CVOpenGLESTextureCacheCreateTextureFromImage (kCFAllocatorDefault,
|
||||||
cache->cache, cm_meta->image_buf, NULL, GL_TEXTURE_2D, GL_RGBA,
|
cache->cache, pixel_buf, NULL, GL_TEXTURE_2D, GL_RGBA,
|
||||||
GST_VIDEO_INFO_WIDTH (&cache->input_info),
|
GST_VIDEO_INFO_WIDTH (&cache->input_info),
|
||||||
GST_VIDEO_INFO_HEIGHT (&cache->input_info),
|
GST_VIDEO_INFO_HEIGHT (&cache->input_info),
|
||||||
GL_RGBA, GL_UNSIGNED_BYTE, 0, &texture);
|
GL_RGBA, GL_UNSIGNED_BYTE, 0, &texture);
|
||||||
|
|
Loading…
Reference in a new issue