Permalink
Browse files

Print warning when the URL is unrecognized in GetChannelIndex()

  • Loading branch information...
daniel-kristjansson committed Dec 19, 2012
1 parent 7250314 commit 03cdbc3efcc56f86df5c7892861d0b9a4f0fbbf7
Showing with 6 additions and 2 deletions.
  1. +6 −2 mythtv/libs/libmythtv/mhi.cpp
@@ -818,8 +818,12 @@ int MHIContext::GetChannelIndex(const QString &str)
nResult = m_currentStream > 0 ? m_currentStream : m_currentChannel;
else if (str == "rec://svc/def")
nResult = m_currentChannel;
else if (str.startsWith("rec://"))
;
else
{
LOG(VB_GENERAL, LOG_WARNING,
QString("[mhi] GetChannelIndex -- Unrecognized URL %1")
.arg(str));
}
get_channel_index_end:
LOG(VB_MHEG, LOG_INFO, QString("[mhi] GetChannelIndex %1 => %2")

0 comments on commit 03cdbc3

Please sign in to comment.