st/vdpau: correct null check
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 30 Mar 2016 06:13:24 +0000 (08:13 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 30 Mar 2016 18:00:27 +0000 (20:00 +0200)
commit9a73f5728e9b834c51128e34317854702281bf3e
treeafa048cfa3aba0e8648cff82f1ae28dc6fe1409c
parent4541a785020aa6b9c6472d0fc4fb0fe8cdcec40f
st/vdpau: correct null check

The null check of result was the wrong way around. Also, move memset
and dereference of result after the null check.

Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/surface.c