xbmc/xbmc — comment on commit 4a42a82ddaead62f8b8f135b4fbb821930bab15c
File:  line 0
By elupus:

We need to always release python lock before taking gfx lock. But for anything that is remotely long running, it should release python and only retake later.