Added CFileItem::FillInMimeType() and make GetMimeType() respect const qualifiers.
authorGarrett Brown <garbearucla@gmail.com>
Sat, 15 Jun 2013 01:17:48 +0000 (18:17 -0700)
committerGarrett Brown <garbearucla@gmail.com>
Sat, 15 Jun 2013 01:49:43 +0000 (18:49 -0700)
commit57f529b62b57e4c0f04f90e9bd8b77d8a461189f
tree19d5631f200a656974468e0986fb4e76d7d57b8b
parent5452c8a4a9171681a345e94be6f8b6c8fae016b0
Added CFileItem::FillInMimeType() and make GetMimeType() respect const qualifiers.

Before, the MIME type would only be resolved if GetMimeType(true) was called, which is potentially blocking. Now MIME types will be resolved from the file's extension without possibly blocking the thread. See doxy of CFileItem::FillInMimeType() for more info.
xbmc/Application.cpp
xbmc/FileItem.cpp
xbmc/FileItem.h
xbmc/TextureCacheJob.cpp
xbmc/filesystem/PluginDirectory.cpp
xbmc/guilib/GUIMultiImage.cpp
xbmc/network/upnp/UPnPInternal.cpp
xbmc/pictures/GUIWindowSlideShow.cpp
xbmc/playlists/PlayListFactory.cpp