decoder: add gst_vaapi_decoder_get_frame_with_timeout().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 25 Apr 2013 11:56:18 +0000 (13:56 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 25 Apr 2013 12:18:00 +0000 (14:18 +0200)
commitc43a2d497a78a0e168ee11d2172ff6f8a426913b
tree4c8bf524236df3aec8f113b8813dcf0fa5ac06bd
parent4b91e31a76d25a282760a46a48355692cfb32b53
decoder: add gst_vaapi_decoder_get_frame_with_timeout().

Add gst_vaapi_decoder_get_frame_with_timeout() helper function that will
wait for a frame to be decoded, until the specified timeout in microseconds,
prior to returning to the caller.

This is a fix to performance regression from 851cc0, whereby the vaapidecode
loop executed on the srcpad task was called to often, thus starving all CPU
resources.
docs/reference/libs/libs-sections.txt
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder.h
gst-libs/gst/vaapi/gstvaapidecoder_priv.h
gst/vaapi/gstvaapidecode.c