From 03cdbc3efcc56f86df5c7892861d0b9a4f0fbbf7 Mon Sep 17 00:00:00 2001 From: Daniel Kristjansson Date: Wed, 19 Dec 2012 14:40:46 -0500 Subject: [PATCH] Print warning when the URL is unrecognized in GetChannelIndex() --- mythtv/libs/libmythtv/mhi.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mythtv/libs/libmythtv/mhi.cpp b/mythtv/libs/libmythtv/mhi.cpp index a1140384fef..2afde8e8950 100644 --- a/mythtv/libs/libmythtv/mhi.cpp +++ b/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")