Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10376/src/plugins

Modified Files:
        rom_drives.py 
Log Message:
use unthreaded ioctrl when possible

Index: rom_drives.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/rom_drives.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** rom_drives.py       18 Dec 2004 18:18:12 -0000      1.72
--- rom_drives.py       19 Dec 2004 10:08:01 -0000      1.73
***************
*** 392,401 ****
                      buf = struct.pack('BBHP', CD_MSF_FORMAT, 0,
                                        length, address)
!                     s = ioctl(fd, CDIOREADTOCENTRYS, buf)
                      s = CDS_DISC_OK
                  except:
                      s = CDS_NO_DISC
              else:
!                 s = ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT)
          except:
              # maybe we need to close the fd if ioctl fails, maybe
--- 392,403 ----
                      buf = struct.pack('BBHP', CD_MSF_FORMAT, 0,
                                        length, address)
!                     # use unthreader ioctl here, it is fast
!                     s = util.ioctl.ioctl(fd, CDIOREADTOCENTRYS, buf)
                      s = CDS_DISC_OK
                  except:
                      s = CDS_NO_DISC
              else:
!                 # use unthreader ioctl here, it is fast
!                 s = util.ioctl.ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT)
          except:
              # maybe we need to close the fd if ioctl fails, maybe



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to