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:56:11 +0000 (14:56 +0100)
commit59573d672842dcaac607110a1c3ee1c6975efdb6
treef90ea8e57d3582cd4979f7461098366124abe7d3
parent66eaa2d5ed3233f5eaa1be6b449b29fd66b6f08c
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