xbmc/xbmc — pull request #2308 by Montellese (2013-02-25 17:15:21+00:00)
Title: refresh the correct video viewed in the video info dialog (fixes #13676)

This change fixes http://trac.xbmc.org/ticket/13676. The issue at hand is that if a user opens another video from the video info dialog without going back to the list of video items, we refresh the wrong video item (the one we used to open the video info dialog). The change grabs the CFileItem instance from the dialog if it needs to perform a refresh. I wanted to use the CFileItem's path as a comparison to determine whether the item has changed but that's not possible because the item we get from CVideoInfoDialog has a videodb:// path whereas the item we passed in has the file's real path.

I don't think this solution is ideal but as long as the whole update procedure is so tied into the whole GUI logic it's probably the least impact change to solve the problem.