xbmc/xbmc — pull request #553 by CrystalP (2011-12-02 05:54:38+00:00)
Title: Fix name and id of inserted DVDs for computers with multiple drives

Impact: resume points broken (they rely on the new DiskUniqueId stuff), and all DVDs appear as "E:\ (DVD)" instead of "E:\ (AMELIE)" for example.

Problem is that for a system with more than one drive, the strPath is not set when calling the label and id reading functions, and they use the first available drive on the system, not the one in which a disc was inserted.

Submitted as a PR because the fix is obviously correct on Windows as the path to the inserted media is passed in pMsg->strParam, but I don't know if that could cause problems for other platforms.