summaryrefslogtreecommitdiffstats
path: root/video/out/gl_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-18 22:35:33 +0200
committerwm4 <wm4@nowhere>2015-08-18 23:01:09 +0200
commit58ba2a9087dfa6bf6a81177c77f86e01acd33286 (patch)
tree9142d608569dbf4056a6a2cb3ab82a1190a137ee /video/out/gl_utils.c
parentc36c596b7bc4700d05eaacdd229e8ebd3e312018 (diff)
downloadmpv-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.c2
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);