decoder: optimize and clean decode_step() up.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 18 Jan 2013 15:56:15 +0000 (16:56 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 18 Jan 2013 15:56:15 +0000 (16:56 +0100)
commita811a5de3d1349f91a9f2d95ef279664963480a0
tree47a4a79dca071e64b5445d58f9b6d0440f1146d3
parentcd52fa315ab21865fa84d8f3a7c03983b08adfea
decoder: optimize and clean decode_step() up.

Avoid usage of goto. Simplify decode_step() process to first accumulate all
pending buffers into the GstAdapter, and then parse and decode units from
that input adapter. Stop the process once a frame is fully decoded or an
error occurred.
gst-libs/gst/vaapi/gstvaapidecoder.c