fritsch/xbmc — comment on commit 3f9fe470d29d8387ba305246a8a9f36dfe8b864b
File: xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp line 269
By FernetMenta:

I think those lines should be moved to CreateSession. width/height can change within a stream, in this case we have to destroy/create the session but the decoder object stays the same.