vaapidecode: fix calculation of the time-out value.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jan 2013 12:10:33 +0000 (13:10 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jan 2013 12:10:33 +0000 (13:10 +0100)
commit5788d8ae45025bf0f0521e7683ef02fbfb12195c
tree3012f112aff08d3c66f3a8518d21b7503a335529
parent492cafdbc14460e142b00feefd731a46646ac595
vaapidecode: fix calculation of the time-out value.

Fix calculation of the time-out value for cases where no VA surface is
available for decoding. In this case, we need to wait until downstream
sink consumed at least one surface. The time-out was miscalculated as
it was always set to <current-time> + one second, which is not suitable
for streams with larger gaps.
gst/vaapi/gstvaapidecode.c