summaryrefslogtreecommitdiffstats
path: root/video/vaapi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-15 12:37:28 +0200
committerwm4 <wm4@nowhere>2015-07-15 12:37:28 +0200
commitd1c37c0e29f0b1dcced460b547f5777d73d8f6eb (patch)
treee0b81b345f6f7a99753023c8048ebbb0e62080da /video/vaapi.c
parent423a1a0f6c83419cb34f08a59ed46169e10c20da (diff)
downloadmpv-d1c37c0e29f0b1dcced460b547f5777d73d8f6eb.tar.bz2
mpv-d1c37c0e29f0b1dcced460b547f5777d73d8f6eb.tar.xz
vaapi: allow allocating additional surfaces during decoding
Fixes problems with --vo=opengl:interpolation. The issue here is that vo_opengl retains more surfaces than what was preallocated for the decoder. Until now, we just explicitly failed to decode frames for which no additional surfaces are available. Since modern drivers usually are fine with not "registering" surfaces before the decoder is created, just allow allocating additional surfaces if needed. (We also could probably recreate the HW decoder, since the HW decoder should be stateless. But let's try to avoid raising the overall complexity of the code.)
Diffstat (limited to 'video/vaapi.c')
0 files changed, 0 insertions, 0 deletions