-
I found that after using DXVA2 in a custom libVLC application I could no longer reset my D3D9 device, because some surfaces hadn't been released. This was caused by two issues: 1) failure to release the surfaces in DxDestroyVideoDecoder that were created by DxCreateVideoDecoder 2) incorrectly calling AcquirePictureSys on the newly created (as opposed to copied) surfaces The result was that all the surfaces allocated had 2 references that were never released. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
d5467ede