Opened 14 years ago

Closed 10 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


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)

mythshutdown-mtd.diff (2.2 KB) - added by laga 12 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 13 years ago by danielk

Milestone: 0.210.22

comment:2 Changed 12 years ago by laga

As an easier workaround, MTD could just call "mythshutdown --lock" when it's doing work and "mythshutdown --unlock" when it's done.

comment:3 Changed 12 years ago by laga

Owner: changed from Isaac Richards to laga
Status: newassigned

Changed 12 years ago by laga

Attachment: mythshutdown-mtd.diff added

comment:4 Changed 12 years ago by laga

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 Changed 11 years ago by stuartm

Component: mythtvMythTV - 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:6 Changed 11 years ago by paulh

Milestone: 0.220.23

This can wait till 0.23

comment:7 Changed 11 years ago by paulh

Milestone: 0.230.24

comment:8 Changed 10 years ago by robertm

Resolution: fixed
Status: assignedclosed

(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).

Note: See TracTickets for help on using tickets.