Skip to content
  • Oliver Collyer's avatar
    dxva2: fixed incorrect acquiring/releasing of hw surfaces · d5467ede
    Oliver Collyer authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    
    
    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: default avatarJean-Baptiste Kempf <jb@videolan.org>
    d5467ede