[vlc-commits] vout: gl: don't handle Android opaque fmt

Thomas Guillem git at videolan.org
Mon Nov 28 16:37:48 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 28 10:20:32 2016 +0100| [44e70121f9ba81fe7b3ae74fd96b798439f3b3e6] | committer: Thomas Guillem

vout: gl: don't handle Android opaque fmt

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44e70121f9ba81fe7b3ae74fd96b798439f3b3e6
---

 modules/video_output/gl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/video_output/gl.c b/modules/video_output/gl.c
index f89e7c3..01aeb6f 100644
--- a/modules/video_output/gl.c
+++ b/modules/video_output/gl.c
@@ -99,6 +99,10 @@ static int Control (vout_display_t *, int, va_list);
 static int Open (vlc_object_t *obj)
 {
     vout_display_t *vd = (vout_display_t *)obj;
+
+    if (vd->fmt.i_chroma == VLC_CODEC_ANDROID_OPAQUE)
+        return VLC_EGENERIC;
+
     vout_display_sys_t *sys = malloc (sizeof (*sys));
     if (unlikely(sys == NULL))
         return VLC_ENOMEM;



More information about the vlc-commits mailing list