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)

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

Download all attachments as: .zip

Change History (9)

comment:1 by danielk, 18 years ago

Milestone: 0.210.22

comment:2 by laga, 17 years ago

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

comment:3 by laga, 17 years ago

Owner: changed from Isaac Richards to laga
Status: newassigned

by laga, 17 years ago

Attachment: mythshutdown-mtd.diff added

comment:4 by laga, 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 stuartm, 16 years ago

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 by paulh, 16 years ago

Milestone: 0.220.23

This can wait till 0.23

comment:7 by paulh, 16 years ago

Milestone: 0.230.24

comment:8 by robertm, 15 years ago

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.