xbmc/xbmc — pull request #2951 by jmbreuer (2013-07-08 09:28:43+00:00)
Title: Generate stable DVD disk IDs by performing CSS first

When generating DVD disk unique IDs (to identify individual disks mainly for resume / playerstate purposes), currently two different IDs can be generated:

a) One, when the disc is first inserted in the drive, and playback has never been attempted
b) Another, when the disc has already been played (and left in the drive) and CSS had been performed

This patch forces CSS to be attempted before trying to generate the disk unique ID, ensuring a result that's identical to what we get when the disk has already been played.

Any ideas on how to clean this up are welcome.

See also http://trac.xbmc.org/ticket/14484 and https://github.com/xbmc/xbmc/issues/2936

Also, this is related to https://github.com/xbmc/xbmc/pull/2940 which is needed to get a disk unique ID at all in szenarios which return uppercase filenames from iso9660.