See here for what I was meaning:

https://github.com/jmarshallnz/xbmc/commit/0454c669f9f921816e3d87182f26931d6cc38ab8