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

 
 

patch #8315: Probe devices before querying media list

Submitter:  None
Submitted:  Thu 13 Feb 2014 08:51:12 PM UTC
   
 
Category:  libcdio Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  enzo1982 Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Applied and pushed.

Robert Kausch <enzo1982>
Group Member
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>
Group 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,
Robert

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by enzo1982 (Posted a comment)
  • -email is unavailable- added by rocky (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-05 enzo1982 CategoryNone libcdio
        StatusNone Done
        Open/ClosedOpen Closed
    2014-06-05 rocky Assigned toNone enzo1982
    2014-02-13 None Attached File- Added libcdio-osx_probe.patch, #30544

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code