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

Only in front of m_pVideoOutput->Dispose() in this version. So it can clear down in revers order: renderer would not use any resources from decoder, output thread can release allocated open gl resources, then decoder can terminate.