mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
applemedia: videotesturecache: let CVOpenGLESTextureCache flush every 1s
Leave kCVOpenGLESTextureCacheMaximumTextureAgeKey to the default (1s). We used to set it to 0 and flush manually, but apparently (looking at the GLES profiler) 0 means "disable the cache entirely".
This commit is contained in:
parent
2c0aca52a8
commit
4aaaf23868
1 changed files with 0 additions and 4 deletions
|
@ -53,8 +53,6 @@ gst_video_texture_cache_new (GstGLContext * ctx)
|
|||
CFMutableDictionaryRef cache_attrs =
|
||||
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
||||
&kCFTypeDictionaryValueCallBacks);
|
||||
gst_vtutil_dict_set_i32 (cache_attrs,
|
||||
kCVOpenGLESTextureCacheMaximumTextureAgeKey, 0);
|
||||
CVOpenGLESTextureCacheCreate (kCFAllocatorDefault, (CFDictionaryRef) cache_attrs,
|
||||
(CVEAGLContext) gst_gl_context_get_gl_context (ctx), NULL, &cache->cache);
|
||||
#else
|
||||
|
@ -160,8 +158,6 @@ _do_get_gl_buffer (GstGLContext * context, ContextThreadData * data)
|
|||
output_buffer = gst_buffer_new ();
|
||||
gst_buffer_copy_into (output_buffer, data->input_buffer, GST_BUFFER_COPY_ALL, 0, -1);
|
||||
|
||||
CVOpenGLESTextureCacheFlush (cache->cache, 0);
|
||||
|
||||
switch (GST_VIDEO_INFO_FORMAT (&cache->input_info)) {
|
||||
case GST_VIDEO_FORMAT_BGRA:
|
||||
/* avfvideosrc does BGRA on iOS when doing GLMemory */
|
||||
|
|
Loading…
Reference in a new issue