]> git.sesse.net Git - vlc/commit
udev sd: fix udev based disc finding
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 7 Mar 2010 15:28:39 +0000 (17:28 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 7 Mar 2010 15:31:47 +0000 (17:31 +0200)
commit0820fb75f362afb97b6b11ece174c1e2f19abdd5
treefdaab448102423c41cf4000be8a900a45527082e
parentfb3c1a2898afb16be0f9833ffc5b2662060825a0
udev sd: fix udev based disc finding

Only blank discs seem to give ID_CDROM_MEDIA_STATE=blank normal audio-cds just
dont have that property at all. And instead defaulting to file, default to
invalid and return NULL if we don't find any property to tell use that optical
disc is something we are able to play currently.

Fixes udev discs sd for me, tested with empty dvd-r discs and audio cds.
modules/services_discovery/udev.c