Skip to content

Commit

Permalink
Log external channel change script failure as an error
Browse files Browse the repository at this point in the history
Patch by Karl Newman

Fixes #12374
  • Loading branch information
dekarl committed Feb 11, 2015
1 parent ff2cd53 commit d8e11b2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mythtv/libs/libmythtv/recorders/channelbase.cpp
Expand Up @@ -868,18 +868,21 @@ uint ChannelBase::GetScriptStatus(bool holding_lock)
/// \note m_system_lock must be held when this is called
void ChannelBase::HandleScriptEnd(bool ok)
{
LOG(VB_CHANNEL, LOG_INFO, LOC + QString("Channel change script %1")
.arg((ok) ? "succeeded" : "failed"));

if (ok)
{
LOG(VB_CHANNEL, LOG_INFO, LOC + "Channel change script succeeded.");

InputMap::const_iterator it = m_inputs.find(m_currentInputID);
if (it != m_inputs.end())
{
// Set this as the future start channel for this source
(*it)->startChanNum = m_curchannelname;
}
}
else
{
LOG(VB_GENERAL, LOG_ERR, LOC + "Channel change script failed.");
}
}

/** \fn ChannelBase::GetCardID(void) const
Expand Down

0 comments on commit d8e11b2

Please sign in to comment.