diff options
author | wm4 <wm4@nowhere> | 2015-08-18 22:35:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-18 23:01:09 +0200 |
commit | 58ba2a9087dfa6bf6a81177c77f86e01acd33286 (patch) | |
tree | 9142d608569dbf4056a6a2cb3ab82a1190a137ee /video/out/gl_utils.c | |
parent | c36c596b7bc4700d05eaacdd229e8ebd3e312018 (diff) | |
download | mpv-58ba2a9087dfa6bf6a81177c77f86e01acd33286.tar.bz2 mpv-58ba2a9087dfa6bf6a81177c77f86e01acd33286.tar.xz |
vo_rpi: use EGL to render subtitles
Slightly faster than using the dispmanx mess (perhaps to a large amount
due to the rather stupid C-only unoptimized ASS->RGBA blending code).
Do this by reusing vo_opengl's subtitle renderer, and vo_opengl's RPI
backend.
Diffstat (limited to 'video/out/gl_utils.c')
-rw-r--r-- | video/out/gl_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gl_utils.c b/video/out/gl_utils.c index d49ec7f6eb..6b9494f126 100644 --- a/video/out/gl_utils.c +++ b/video/out/gl_utils.c @@ -553,6 +553,8 @@ static void sc_flush_cache(struct gl_shader_cache *sc) void gl_sc_destroy(struct gl_shader_cache *sc) { + if (!sc) + return; gl_sc_reset(sc); sc_flush_cache(sc); talloc_free(sc); |