aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar Uoti Urpala <uau@glyph.nonexistent.invalid>2010-05-26 08:54:09 +0300
committerGravatar Uoti Urpala <uau@glyph.nonexistent.invalid>2010-05-26 09:14:12 +0300
commit2e8ef70d4fe1dab503e2112512383a6fec7b9499 (patch)
tree07e574af5e829aeffa97af7cf04c20231c0eb7f3 /stream
parentaa07b6d578847a1dcbb6b95f7837919fe430ee30 (diff)
vo_vdpau: fix loop initializing output surfaces as invalid
The loop initializing handles in the output surface table to VDP_INVALID_HANDLE ran over indices from 0 to vc->num_output_surfaces. However it is first called before that variable is initialized. As a result later code could try to destroy the handles which still had the "non-invalid" value 0. Most likely this caused no visible effects; at least on my machine no valid surface gets handle 0, and libvdpau just returns an error for the resulting invalid calls. Change the code to loop over the whole table. Also add code to print visible warnings if libvdpau rejects a surface destroy call (some other places already had checks but not all).
Diffstat (limited to 'stream')
0 files changed, 0 insertions, 0 deletions