Opened 19 years ago
Closed 15 years ago
#2896 closed defect (fixed)
mythwelcome, mythshutdown and mtd
Reported by: | abarbaccia | Owned by: | laga |
---|---|---|---|
Priority: | minor | Milestone: | 0.24 |
Component: | MythTV - Mythwelcome & Mythshutdown | Version: | head |
Severity: | medium | Keywords: | mythwelcome, mythshutdown, mtd, mythdvd |
Cc: | Ticket locked: | no |
Description
Currently if you are ripping a DVD and quit MythFrontend, MythWelcome will shut down.
mythshutdown should connect to the mtd daemon to check if it is busy in addition to its other checks before giving the "ok" for shutting down.
Attachments (1)
Change History (9)
comment:1 by , 18 years ago
Milestone: | 0.21 → 0.22 |
---|
comment:2 by , 17 years ago
comment:3 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
by , 17 years ago
Attachment: | mythshutdown-mtd.diff added |
---|
comment:4 by , 17 years ago
I've added a preliminary patch which checks if MTD is busy.
We're unfortunately running out of status flags for the return code. Return codes on Linux can't be bigger than one byte, hence returning 512 as I do in this patch is not exactly going to work.
As a quick and easy workaround, we could return 1 which means "Transcoding". Thoughts?
comment:5 by , 16 years ago
Component: | mythtv → MythTV - Mythwelcome & Mythshutdown |
---|
Laga if you can update the patch using 1 instead of 512 we may as well get this out of the way.
comment:7 by , 16 years ago
Milestone: | 0.23 → 0.24 |
---|
comment:8 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [24069]) Fixes #2896. Check the status of mtd in mythshutdown to prevent cutting a rip/transcode off at the knees. Original patch from Laga, minor modifications to account for changes since then/compile fix under current Qt4 (Applications that use Qt's networking classes need to be configured to be built against the QtNetwork module).
As an easier workaround, MTD could just call "mythshutdown --lock" when it's doing work and "mythshutdown --unlock" when it's done.