mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
applemedia: update for GLMemory API changes
This commit is contained in:
parent
fd3203cfeb
commit
3088063ebd
1 changed files with 4 additions and 4 deletions
|
@ -165,7 +165,7 @@ gl_mem_from_buffer (GstCoreVideoTextureCache * cache,
|
|||
|
||||
gl_target = gst_gl_texture_target_from_gl (CVOpenGLTextureGetTarget (texture));
|
||||
|
||||
*mem1 = (GstMemory *) gst_gl_memory_wrapped_texture (cache->ctx,
|
||||
*mem1 = (GstMemory *) gst_gl_memory_pbo_wrapped_texture (cache->ctx,
|
||||
CVOpenGLTextureGetName (texture), gl_target,
|
||||
&cache->input_info, 0, NULL, texture, (GDestroyNotify) CFRelease);
|
||||
break;
|
||||
|
@ -181,7 +181,7 @@ gl_mem_from_buffer (GstCoreVideoTextureCache * cache,
|
|||
|
||||
gl_target = gst_gl_texture_target_from_gl (CVOpenGLESTextureGetTarget (texture));
|
||||
|
||||
*mem1 = (GstMemory *) gst_gl_memory_wrapped_texture (cache->ctx,
|
||||
*mem1 = (GstMemory *) gst_gl_memory_pbo_wrapped_texture (cache->ctx,
|
||||
CVOpenGLESTextureGetName (texture), gl_target,
|
||||
&cache->input_info, 0, NULL, texture, (GDestroyNotify) CFRelease);
|
||||
break;
|
||||
|
@ -202,7 +202,7 @@ gl_mem_from_buffer (GstCoreVideoTextureCache * cache,
|
|||
goto error;
|
||||
|
||||
gl_target = gst_gl_texture_target_from_gl (CVOpenGLESTextureGetTarget (texture));
|
||||
*mem1 = (GstMemory *) gst_gl_memory_wrapped_texture (cache->ctx,
|
||||
*mem1 = (GstMemory *) gst_gl_memory_pbo_wrapped_texture (cache->ctx,
|
||||
CVOpenGLESTextureGetName (texture), gl_target,
|
||||
&cache->input_info, 0, NULL, texture, (GDestroyNotify) CFRelease);
|
||||
|
||||
|
@ -218,7 +218,7 @@ gl_mem_from_buffer (GstCoreVideoTextureCache * cache,
|
|||
goto error;
|
||||
|
||||
gl_target = gst_gl_texture_target_from_gl (CVOpenGLESTextureGetTarget (texture));
|
||||
*mem2 = (GstMemory *) gst_gl_memory_wrapped_texture (cache->ctx,
|
||||
*mem2 = (GstMemory *) gst_gl_memory_pbo_wrapped_texture (cache->ctx,
|
||||
CVOpenGLESTextureGetName (texture), gl_target,
|
||||
&cache->input_info, 0, NULL, texture, (GDestroyNotify) CFRelease);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue