[mythtv-commits] Ticket #10569: libcdio broken on OS X?

MythTV noreply at mythtv.org
Mon Apr 9 01:34:11 UTC 2012


#10569: libcdio broken on OS X?
----------------------------------+-----------------------------
 Reporter:  nigel                 |          Owner:  jyavenard
     Type:  Bug Report - General  |         Status:  new
 Priority:  minor                 |      Milestone:  unknown
Component:  Ports - OSX           |        Version:  Master Head
 Severity:  low                   |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+-----------------------------

Comment (by nigel):

 Existing bug with libcdio: http://savannah.gnu.org/bugs/?30019 -
 independent of the packager?

 After hacking it's configure to support darwin10, and lib/drivers/osx.c to
 have the correct IOKit/scsi/ include paths, it now does something:
 {{{

 macbook% ./cd-info -C /dev/disk1
 cd-info version 0.83 x86_64-apple-darwin10.8.0
 Copyright (c) 2003, 2004, 2005, 2007, 2008, 2011 R. Bernstein
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.
 ++ WARN: open (/dev/disk1): Resource busy
 cd-info: Cannot use CD-ROM device /dev/disk1. Is a CD loaded?
 macbook% df
 Filesystem      512-blocks      Used Available Capacity  Mounted on
 /dev/disk0s3     104857600  99153280   5192320    96%    /
 devfs                  253       253         0   100%    /dev
 /dev/disk0s4      83886080  71483824  12402256    86%    /Volumes/Users
 /dev/disk0s5     214309152 197662672  16646480    93%    /Volumes/Backups
 map -hosts               0         0         0   100%    /net
 map auto_home            0         0         0   100%    /home
 /dev/disk1s12s2      18100     18100         0   100%    /Volumes/Chris
 Tomlin
 /dev/disk1          827800    827800         0   100%    /Volumes/Audio CD
 macbook% umount /Volumes/Chris\ Tomlin
 umount: unmount(/Volumes/Chris Tomlin): Operation not permitted
 macbook% sudo umount /Volumes/Chris\ Tomlin
 Password:
 macbook% df
 Filesystem    512-blocks      Used Available Capacity  Mounted on
 /dev/disk0s3   104857600  99153360   5192240    96%    /
 devfs                253       253         0   100%    /dev
 /dev/disk0s4    83886080  71483824  12402256    86%    /Volumes/Users
 /dev/disk0s5   214309152 197662672  16646480    93%    /Volumes/Backups
 map -hosts             0         0         0   100%    /net
 map auto_home          0         0         0   100%    /home
 /dev/disk1        827800    827800         0   100%    /Volumes/Audio CD
 macbook%
 macbook%
 macbook%
 macbook% ./cd-info -C /dev/disk1
 cd-info version 0.83 x86_64-apple-darwin10.8.0
 Copyright (c) 2003, 2004, 2005, 2007, 2008, 2011 R. Bernstein
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.
 ++ WARN: open (/dev/disk1): Resource busy
 cd-info: Cannot use CD-ROM device /dev/disk1. Is a CD loaded?
 macbook% sudo umount /Volumes/Audio\ CD
 macbook% ./cd-info -C /dev/disk1
 cd-info version 0.83 x86_64-apple-darwin10.8.0
 Copyright (c) 2003, 2004, 2005, 2007, 2008, 2011 R. Bernstein
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.
 CD location   : /dev/disk1
 CD driver name: OS X
    access mode: OS X

 Vendor                      : MATSHITA
 Model                       : CD-RW  CW-8221
 Revision                    : GA0K
 Hardware                                  : CD-ROM or DVD
 Can eject                                 : Yes
 Can close tray                            : Yes
 Can disable manual eject                  : Yes
 Can select juke-box disc                  : No

 Can set drive speed                       : Yes
 Can read multiple sessions (e.g. PhotoCD) : Yes
 Can hard reset device                     : Yes

 Reading....
   Can read Mode 2 Form 1                  : No
   Can read Mode 2 Form 2                  : No
   Can read (S)VCD (i.e. Mode 2 Form 1/2)  : No
   Can read C2 Errors                      : No
   Can read IRSC                           : No
   Can read Media Channel Number (or UPC)  : No
   Can play audio                          : No
   Can read CD-DA                          : No
   Can read CD-R                           : No
   Can read CD-RW                          : No
   Can read DVD-ROM                        : Yes

 Writing....
   Can write CD-RW                         : No
   Can write DVD-R                         : No
   Can write DVD-RAM                       : No
   Can write DVD-RW                        : No
   Can write DVD+RW                        : No
 __________________________________

 Disc mode is listed as: CD-ROM Mixed
 CD-ROM Track List (1 - 12)
   #: MSF       LSN    Type   Green? Copy? Channels Premphasis?
   1: 00:02:00  000000 audio  false  yes   2        no
   2: 03:59:74  017849 audio  false  yes   2        no
   3: 08:11:69  036744 audio  false  yes   2        no
   4: 12:38:38  056738 audio  false  yes   2        no
   5: 16:47:37  075412 audio  false  yes   2        no
   6: 20:47:35  093410 audio  false  yes   2        no
   7: 24:21:04  109429 audio  false  yes   2        no
   8: 30:25:49  136774 audio  false  yes   2        no
   9: 34:32:13  155263 audio  false  yes   2        no
  10: 38:09:08  171533 audio  false  yes   2        no
  11: 41:17:10  185635 audio  false  yes   2        no
  12: 48:33:14  218339 data   true   no
 170: 49:36:31  223081 leadout (500 MB raw, 496 MB formatted)
 Media Catalog Number (MCN): not supported by drive/driver
 Last CD Session LSN: failed
 audio status: not implemented
 __________________________________
 CD Analysis Report
 CD-Plus/Extra
 session #2 starts at track 12, LSN: 218339, ISO 9660 blocks: 222929
 ISO 9660: 222929 blocks, label `CHRIS_TOMLIN                    '
 macbook%
 }}}
 It looks like, after patching libcdio upstream, MythMusic will need an OS
 X-specific hack to unmount audio CDs. i.e. libcdio doesn't play nicely
 with the OS X environment of DIskArbitration and the Finder. Not thrilled
 - would prefer to put cddecoder-darwin.cpp back :-(

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10569#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list