[vlc-commits] gl: vaapi: fix DRM use case

Mathieu Velten git at videolan.org
Tue Sep 5 11:36:11 CEST 2017


vlc | branch: master | Mathieu Velten <matmaul at gmail.com> | Tue Sep  5 11:34:21 2017 +0200| [fddcc1004fe1f350dbd6ff380e7ddf205a9e0964] | committer: Thomas Guillem

gl: vaapi: fix DRM use case

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_output/opengl/converter_vaapi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/opengl/converter_vaapi.c b/modules/video_output/opengl/converter_vaapi.c
index 6ffee98fb5..20fe855182 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -422,6 +422,8 @@ Open(vlc_object_t *obj)
         {
             ret = tc_vaegl_init(tc, dpy, (VANativeDisplay) (intptr_t) drm_fd,
                                 drm_native_destroy_cb);
+            if (ret == VLC_SUCCESS)
+                break;
         }
         else
             vlc_close(drm_fd);



More information about the vlc-commits mailing list