xbmc/xbmc — pull request #1704 by koying (2012-10-31 12:33:31+00:00)
Title: FIX: Crash when generating thumbnails (at least with mysql on Windows)

This solves a crash I was having when generating thumbnails with a mysql on Windows setup.

I don't know whether this also happens on other platforms or with sqlite, but IMO creating a database per thread is anyway a good practice...