st/xvmc: exit gracefully if we fail to create video buffer
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 17 Aug 2013 20:45:19 +0000 (21:45 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Aug 2013 16:32:07 +0000 (18:32 +0200)
commiteab9bad1ac0e0ba625b750ee2fbe557beb336766
tree43de7a7601e000fc9d8bf7ce4f1c1b3ee93b11c4
parent5e91c152902dc32b9042faddf186146860095ecb
st/xvmc: exit gracefully if we fail to create video buffer

Free any allocated memory and return BadAlloc if create_video_buffer()
has failed to create a buffer.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/xvmc/surface.c