TheSwissKnife/xbmc — comment on commit 1b1c0bb122b2106111d09206f917b5a6625881c4
File: xbmc/cores/dvdplayer/DVDPlayerVideo.cpp line 285
By FernetMenta:

When output thread unconfigures (or dispose in this version) it will remove those and unconfigure the open gl part of the decoder. The correct order is:

- make sure that renderer does not access any decoder resources: WaitDrained or Flush (new function)
- clear down output thread
- dispose decoder