decoder: simplify gst_vaapi_decoder_get_surface().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 18 Jan 2013 16:00:18 +0000 (17:00 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 18 Jan 2013 16:00:18 +0000 (17:00 +0100)
commitb24752da4ff7dec70390912de4bc8568680cb8f5
treefa2f2e7c8f6c7bb51b1b70d0a15f83894438e462
parenta811a5de3d1349f91a9f2d95ef279664963480a0
decoder: simplify gst_vaapi_decoder_get_surface().

Avoid extraenous branches, i.e. immediately return with success once we
have a decoded frame available.
gst-libs/gst/vaapi/gstvaapidecoder.c