vaapiencode: fix memory leaks in _push_frame() on error.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 14:14:43 +0000 (15:14 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 16:32:17 +0000 (17:32 +0100)
commit081ff63f9a7d13438414c2d96da4c261b2b030f6
tree510fa4587d192ea4810465ba26fad009dc7c6c46
parent8116d8a50ea8681d0e384198506e33879493f7e6
vaapiencode: fix memory leaks in _push_frame() on error.

Simplify gst_vaapiencode_push_frame(), while also removing the call
to gst_video_encoder_negotiate() since this is implicit in _finish()
if caps changed. Also fixed memory leaks that occured on error.
gst/vaapi/gstvaapiencode.c