xbmc/xbmc — pull request #567 by Montellese (2011-12-11 14:38:43+00:00)
Title: initialize JSON-RPC before loading a skin (fixes #12279)

When JSON-RPC is initialized after a skin has been loaded during XBMC startup it can happen that a script executed by the skin from Startup.xml makes JSON-RPC requests before JSON-RPC has been initialized which will result in an error response from JSON-RPC.

I'm sending this as a pull request because I'm not very familiar with the startup procedure and possible problems in timing/order of execution. This might cause scripts like randomitems, watchlist, tv.show.next.aired etc which are run on startup of a skin to fail (which also causes a notification becoming visible in XBMC saying that the script failed). Ideally it would also be committed to the Eden branch.