[vlc-commits] opengl: vaapi: replace check with assert

Thomas Guillem git at videolan.org
Tue Nov 7 11:52:55 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov  7 08:45:40 2017 +0100| [5712c322a38ef81202c3b61dd0339baa64a25bb5] | committer: Thomas Guillem

opengl: vaapi: replace check with assert

This case can't happen since this module is responsible of creating
va surfaces.

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

 modules/video_output/opengl/converter_vaapi.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/video_output/opengl/converter_vaapi.c b/modules/video_output/opengl/converter_vaapi.c
index 17c9a03bf7..6d9f535359 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -157,12 +157,7 @@ tc_vaegl_update(const opengl_tex_converter_t *tc, GLuint *textures,
             goto error;
         release_image = true;
 
-        if (va_image.format.fourcc != priv->fourcc)
-        {
-            msg_Err(tc->gl, "fourcc changed");
-            /* TODO: fetch new fourcc and reconfigure shader */
-            goto error;
-        }
+        assert(va_image.format.fourcc == priv->fourcc);
 
         va_buffer_info = (VABufferInfo) {
             .mem_type = VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME



More information about the vlc-commits mailing list