From 0f753b70999716588a1761277e16d26e8f67b4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 24 Nov 2014 11:32:33 +0100 Subject: [PATCH] glupload: Fix valid compiler warning gstglupload.c:442:32: error: if statement has empty body [-Werror,-Wempty-body] if (upload->texture_ids[i]); ^ --- gst-libs/gst/gl/gstglupload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index c95375f39f..605bef5903 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -439,9 +439,9 @@ _upload_meta_upload_free (gpointer impl) gint i; for (i = 0; i < GST_VIDEO_MAX_PLANES; i++) { - if (upload->texture_ids[i]); - gst_gl_context_del_texture (upload->upload->context, - &upload->texture_ids[i]); + if (upload->texture_ids[i]) + gst_gl_context_del_texture (upload->upload->context, + &upload->texture_ids[i]); } }