patchCompact Disc Input and Control Library - Patches: patch #8315, Probe devices before querying...


patch #8315: Probe devices before querying media list

Submitted by:  None
Submitted on:  Thu 13 Feb 2014 08:51:12 PM UTC  
Category: libcdioPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Robert Kausch <enzo1982>Originator Email: -unavailable-
Open/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 05 Jun 2014 07:51:07 PM UTC, comment #2:

Applied and pushed.

Robert Kausch <enzo1982>
Project MemberIn charge of this item.
Thu 05 Jun 2014 12:41:48 AM UTC, comment #1:

Please make the change directly - thanks. And thanks for the patch!

Rocky Bernstein <rocky>
Project Administrator
Thu 13 Feb 2014 08:51:12 PM UTC, original submission:

Here's another patch for OS X.

This one is relevant only for applications that call cdio_get_devices or cdio_get_default_device multiple times and expect up to date information each time.

The problem with IOServiceGetMatchingServices is that the result is cached by the system so if you insert or remove a disc between two calls, you won't get updated information returned.

To get an up to date media list, you need to probe the storage devices using IOServiceRequestProbe between the two calls.

The attached patch adds storage device probing before querying the media list.

Best regards,



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #30544:  libcdio-osx_probe.patch added by None (2KiB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by enzo1982 (Posted a comment)
  • -unavailable- added by rocky (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Jun 2014 07:51:07 PM UTCenzo1982CategoryNone=>libcdio
    Thu 05 Jun 2014 12:41:48 AM UTCrockyAssigned toNone=>enzo1982
    Thu 13 Feb 2014 08:51:12 PM UTCNoneAttached File-=>Added libcdio-osx_probe.patch, #30544

    Back to the top

    Powered by Savane 3.1-cleanup1