Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Print warning when the URL is unrecognized in GetChannelIndex()
  • Loading branch information
daniel-kristjansson committed Dec 19, 2012
1 parent 7250314 commit 03cdbc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mythtv/libs/libmythtv/mhi.cpp
Expand Up @@ -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")
Expand Down

0 comments on commit 03cdbc3

Please sign in to comment.