tests:va: Fix null ptr dereference in multi-vpp
authorMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Wed, 13 Oct 2021 09:17:44 +0000 (17:17 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 15 Oct 2021 00:45:45 +0000 (00:45 +0000)
commitb57df4cfd12c23539612f38a77e9007bee61d2e7
tree7ef550f5e3a0a6478b25cd87ae301d0bfb3d36b1
parent4a6cc431d224f3687c41e6d1ccd5e7e249c6a1a2
tests:va: Fix null ptr dereference in multi-vpp

Dereference the pointer err before null check, which raised a null
pointer dereference issue by Coverity. Modify it to do the null check
of err first, then dereference it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1143>
subprojects/gst-plugins-bad/tests/examples/va/multiple-vpp.c