xbmc/xbmc — pull request #1710 by Montellese (2012-10-31 22:57:12+00:00)
Title: jsonrpc: two fixes

These commits contain two fixes:
* The first commit fixes http://trac.xbmc.org/ticket/13343. The SQL query in CVideoDatabase::GetFileInfo() was not correct i.e. it only worked if the file being looked up also had a resume point set.
* The other commits fix issues where information like "size" or "mimetype" were overwritten when using Files.GetDirectory or Files.GetFileDetails through JSON-RPC in case where there is media-specific metadata available because we simply created a new CFileItem object instead of updating the existing one which already contained certain valid information.