TheSwissKnife/xbmc — comment on commit 1b1c0bb122b2106111d09206f917b5a6625881c4
File: xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp line 1012
By FernetMenta:

Do you really want to delete the vdpau object after a seek? With all its configured open gl resources. Note that the old object would not terminate until the last reference is cleared. This would happen after 4 flips and the main thread would release the object. Not good because output thread has no chance to clear down the open gl resources it has allocated.