glupload: Fix valid compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Mon, 24 Nov 2014 10:32:33 +0000 (11:32 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 24 Nov 2014 10:32:33 +0000 (11:32 +0100)
gstglupload.c:442:32: error: if statement has empty body [-Werror,-Wempty-body]
    if (upload->texture_ids[i]);
                               ^

gst-libs/gst/gl/gstglupload.c

index c95375f..605bef5 100644 (file)
@@ -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]);
   }
 }