Introduction + [PATCH] CD/DVD advanced detection

Danny Kukawka danny.kukawka at web.de
Mon Aug 22 10:08:17 PDT 2005


On Monday 22 August 2005 13:25, Kevin Ottens wrote:
> Hi list,
[...]
> I adapted some code used in KDE to guess a CD/DVD content. It worked nicely
> when used to post-process what HAL reports, but it'll surely better to have
> it in HAL directly. It's not heavily modified, so it should be stable I
> guess, I tested it here against this morning CVS and it works nicely.
>
> When a data CD/DVD is inserted, it simply access the table of contents and
> tries to find a special directory indicating if the medium if a VCD, SVCD
> or Video DVD. This way, no mounting is needed and then it is not too
> intrusive.
>
> I greatly hope it can make its way to your CVS repository.

Good Idea! Looks good for me and I would like to add this to the CVS.

I reworked your patch (comments and usage of le*_to_cpu()). 

Cheers,

Danny

ps: I already added the patch to the HAL for the next openSUSE Beta.

 probe-volume.c |  137 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 137 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-add-advanced_medium_detect.diff
Type: text/x-diff
Size: 4897 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050822/5caa7779/hal-add-advanced_medium_detect-0001.bin


More information about the hal mailing list