Opened 13 years ago

Closed 13 years ago

#9690 closed Patch - Bug Fix (fixed)

Mythtranscode is running forever during normal MPEG2 processing (DVB-T, DVB-C)

Reported by: Lutz Mändle <lmaendle@…> Owned by: beirdo
Priority: major Milestone: 0.25
Component: MythTV - Mythtranscode Version: 0.24-fixes
Severity: medium Keywords: mythtranscode runs forever
Cc: Ticket locked: no

Description

Maybe since using QThread and QWaitCondition objects in mpeg2fix.cpp mythtranscode runs forever during normal MPEG2 processing. I've found, that the transcode process comes to the normal end and then waits for a thread that not finished so the whole process can not finish. The attached patch corrects this problem.

Attachments (1)

mythtranscode_finish.patch (873 bytes) - added by Lutz Mändle <lmaendle@…> 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Lutz Mändle <lmaendle@…>

Attachment: mythtranscode_finish.patch added

comment:1 Changed 13 years ago by beirdo

Owner: set to beirdo
Status: newassigned

I'll take a look at this one. I don't think the proposed fix is perfect, but it's a good start.

comment:2 Changed 13 years ago by Federico <federico.ferri@…>

i think this ticket sould be the same of #9652

comment:3 Changed 13 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: assignedclosed

Fix the shutdown of mpeg2fix thread

Fixes #9690. This patch is from the ticket, with some subsequent minor cleanup by me (mplex is no longer needed as a class member). This is intended to fix the shutdown of the thread in mpeg2->mpeg2 "lossless" cutting which didn't terminate cleanly, and then we waited for it forever.

Signed-off-by: Gavin Hurlbut <ghurlbut@…>

Changeset: a08e7d04961f848396f58afb53f72d61dc86f4c8

Note: See TracTickets for help on using tickets.