xbmc/xbmc — pull request #828 by wsoltys (2012-03-29 19:33:32+00:00)
Title: [WIN32] Reduce singlelocks in mediamanager

I need some thoughts on this one.
Currently it happens with some bluray drives that XBMC freezes for four minutes. I assume this is a problem with libcdio trying to detect the filesystem.
I've added a job to not block the app thread with it but XBMC still freezes. I assume this happens because we are in a single lock during the libcdio session and the gui thread hangs in the same single lock when requesting g_mediaManager.IsDiscInDrive() in GUIInfomanager.cpp.
Therefore I tried to remove some of the locks and reordered stuff in GetCdInfo which should ofc return even when the drive isn't ready yet.
Any thoughts on this?