decoder: create new context when encoded resolution changes.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jan 2013 10:16:44 +0000 (11:16 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jan 2013 10:16:44 +0000 (11:16 +0100)
commit9bba1e5fe32b414882c5a2821241f117264d03b5
tree84226fef5be8cf0ac2011793b74d0d37a8c1e4f1
parenteda01ab027351dc10c437050ff3e2dd485ccc2cf
decoder: create new context when encoded resolution changes.

Create a new VA context if the encoded surface size changes because we
need to keep the underlying surface pool until the last one was released.
Otherwise, either of the following cases could have happened: (i) release
a VA surface to an inexistent pool, or (ii) release VA surface to an
existing surface pool, but with different size.
gst-libs/gst/vaapi/gstvaapidecoder.c