Skip to content

Commit

Permalink
Don't leave HDHomeRun channels open after EIT scans.
Browse files Browse the repository at this point in the history
The HDHomeRun unlocks the tuner due to inactivity but MythTV still
thinks it's open.  The result is the next recording or EIT scan fails.
The fix is to always close the channel immediately after finishing
with it.

Refs #13407

Signed-off-by: David Engel <dengel@mythtv.org>
(cherry picked from commit e7e2270)
  • Loading branch information
kmdewaal authored and gigem committed Feb 17, 2019
1 parent 5100ef5 commit 70a58c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmythtv/tv_rec.cpp
Expand Up @@ -1198,7 +1198,9 @@ void TVRec::CloseChannel(void)
{
if (channel &&
((genOpt.inputtype == "DVB" && dvbOpt.dvb_on_demand) ||
genOpt.inputtype == "FREEBOX" || genOpt.inputtype == "VBOX" ||
genOpt.inputtype == "FREEBOX" ||
genOpt.inputtype == "VBOX" ||
genOpt.inputtype == "HDHOMERUN" ||
CardUtil::IsV4L(genOpt.inputtype)))
{
channel->Close();
Expand Down

0 comments on commit 70a58c0

Please sign in to comment.