diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2016-02-10 15:40:02 +1100 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2016-02-10 15:40:02 +1100 |
commit | 4aaaf238682e8643faaa19d6c8fc0305e7b1e839 (patch) | |
tree | 04efe811761187080d0ba2ddf38257f430318c63 /sys | |
parent | 2c0aca52a8c7f3c7f1bd21a40acb19f53e7026d9 (diff) | |
download | gstreamer-plugins-bad-4aaaf238682e8643faaa19d6c8fc0305e7b1e839.tar.gz |
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".
Diffstat (limited to 'sys')
-rw-r--r-- | sys/applemedia/videotexturecache.m | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/applemedia/videotexturecache.m b/sys/applemedia/videotexturecache.m index 1675d21af..e1bdb64d2 100644 --- a/sys/applemedia/videotexturecache.m +++ b/sys/applemedia/videotexturecache.m @@ -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 */ |