vaapidecode: avoid double release of frame on error.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 27 Dec 2012 08:55:14 +0000 (09:55 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 2 Jan 2013 12:13:42 +0000 (13:13 +0100)
commit0ff8556f6518a33618025bd59fa421b52f0ee0e0
tree00fb1e102eb192bbfe29274e27c100e7941a9852
parent9e643a614771617be59e21ee2c63a6cb56ff36fe
vaapidecode: avoid double release of frame on error.

Don't call gst_video_decoder_drop_frame() if gst_video_decoder_finish_frame()
was already called before and it returned an error. In that case, we were
releasing the frame again, thus leading to a "double-free" condition.
gst/vaapi/gstvaapidecode.c