Opened 12 years ago
Closed 11 years ago
#6786 closed patch (fixed)
mythtvosd/udpnotify stops working after watching the first show
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | MythTV - General | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Hi All,
UDPnotify seems to stop working after watching the first show. The steps to reproduce are:
- start mythfrontend
- watch a program
- send a udp message (e.g. mythtvosd --template=cid) to confirm it works
- exit the show (not mythfrontend)
- start the show again
- attempt to send a udp message again (this step fails)
I think the issue is that udpnotify->deleteLater() is never called when tv_play.cpp shuts down. This means that the socket doesn't get closed so future udp messages get lost. Attached is a patch to make sure that this method is called in the TV deconstructor. I'm not sure if this is the best place for it but it worked for me.
Thanks! Doug
Attachments (1)
Change History (7)
comment:1 Changed 12 years ago by
Priority: | major → minor |
---|---|
Type: | defect → patch |
Version: | unknown → head |
comment:2 Changed 12 years ago by
Milestone: | unknown → 0.22 |
---|
comment:3 Changed 12 years ago by
Owner: | changed from Isaac Richards to stuartm |
---|---|
Status: | new → accepted |
comment:4 Changed 12 years ago by
This is related to TeardownPlayer?() not being called when exiting playback, which itself causes leaks and other problems. Someone was looking at this issue recently, but I can't remember who.
Patch to close the udpnotify socket when user exits from tv