h264: initialize VA context before allocating the first slice.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 17 Dec 2012 12:42:29 +0000 (04:42 -0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 17 Dec 2012 13:33:52 +0000 (14:33 +0100)
commit1bd5ab4db379cacbfadaa74537aa2fc7ee3b2569
treee87e2c8887a588f870dc18fb45a4e4c9076ae194
parent8e8dc03677d8a244d8631715f9aea4fff7fc2b1c
h264: initialize VA context before allocating the first slice.

Fix decode_slice() to ensure a VA context exists prior to creating a
new GstVaapiSliceH264, which invokes vaCreateBuffer() with some VA
context ID. i.e. the latter was not initialized, thus causing failures
on Cedar Trail for example.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c