1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

vaapi: lower number of allocated surfaces again

Commit b53cb8de increased this by the number of additionally delayed
surfaces. But since this is only enabled in copy-back mode (which is
what process_image is about), the other additional surfaces accounted
for the direct rendering case can be ignored.
This commit is contained in:
wm4 2016-01-26 14:05:54 +01:00
parent 6462eabff3
commit 475d346174

View File

@ -44,7 +44,7 @@
* Note that redundant additional surfaces also might allow for some
* buffering (i.e. not trying to reuse a surface while it's busy).
*/
#define ADDTIONAL_SURFACES (6 + HWDEC_DELAY_QUEUE_COUNT)
#define ADDTIONAL_SURFACES MPMAX(6, HWDEC_DELAY_QUEUE_COUNT)
// Some upper bound.
#define MAX_SURFACES 25