[mythtv-commits] Ticket #10535: mythburn.py crash
MythTV
noreply at mythtv.org
Sun Feb 24 01:56:37 UTC 2013
#10535: mythburn.py crash
----------------------------------+-----------------------------
Reporter: t.brackertz@… | Owner:
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythArchive | Version: Unspecified
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Comment (by Mike Kutner <videoguy1080@…>):
Ah - yes - you are absolutely correct. Your attached patch fixes the
original issue and should be accepted.
I verified that my failure to eject is the same as
http://code.mythtv.org/trac/ticket/4022. The root cause is that
/lib/udev/rules.d/60-cdrom_id.rules locks the CD/DVD drive. I am not a
python expert, but this change to mythburn.py fixes the failure to eject:
{{{
@@ -2254,6 +2254,8 @@ def BurnDVDISO(title):
waitForDrive()
res = False
f = os.open(dvddrivepath, os.O_RDONLY | os.O_NONBLOCK)
+ if (action == CDROM.CDROMEJECT):
+ ioctl(f, CDROM.CDROM_LOCKDOOR, 0)
try:
ioctl(f,action, 0)
res = True
}}}
I am not sure how this works for the case that the CD/DVD drive is not
locked. Do you think that I should move this to a separate issue?
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10535#comment:4>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list