Do not mix declaration and code
authorThibault Saunier <tsaunier@igalia.com>
Tue, 10 Dec 2019 21:40:42 +0000 (18:40 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 10 Dec 2019 21:44:11 +0000 (18:44 -0300)
tests/check/elements/vaapipostproc.c

index d3a8be7..1e892d9 100644 (file)
@@ -114,9 +114,9 @@ vpp_test_set_orientation (VppTestContext * ctx, GstVideoOrientationMethod m)
 static void
 vpp_test_set_dimensions (VppTestContext * ctx, gint w, gint h)
 {
-  GST_LOG ("%dx%d", w, h);
   GstCaps *caps = gst_caps_new_simple ("video/x-raw",
       "width", G_TYPE_INT, w, "height", G_TYPE_INT, h, NULL);
+  GST_LOG ("%dx%d", w, h);
   g_object_set (ctx->filter, "caps", caps, NULL);
   gst_caps_unref (caps);
 }