xbmc/xbmc — pull request #5361 by FernetMenta (2014-09-11 15:19:47+00:00)
Title: dxva: fix RelBuffer, use correct CDecoder object

in GetFormat we create a new CDecoder object but some buffers requested with GetBuffer belong to the old CDecoder object. we need to make sure that RelBuffer returns the buffer to the correct object.

@ace20022 can you test this please. the problem was that RelBuffer was called on the new CDecoder object which closed itself because the refcount was 0.