aboutsummaryrefslogtreecommitdiff
path: root/lib/service/servicedvb.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-11-25 16:15:20 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-11-25 16:15:20 +0100
commit93979892e9d66d3f31b84ac0e3399e95a77f76c2 (patch)
treef290c83869f8f94491c91395cd406b3d28aeaf60 /lib/service/servicedvb.cpp
parented545659e30ea7796e2e7acd06e766cc82efb486 (diff)
downloadenigma2-93979892e9d66d3f31b84ac0e3399e95a77f76c2.tar.gz
enigma2-93979892e9d66d3f31b84ac0e3399e95a77f76c2.zip
lib/service/servicedvb.cpp: add possibility to override servicename for pvr dvb services
Diffstat (limited to 'lib/service/servicedvb.cpp')
-rw-r--r--lib/service/servicedvb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 0d617c30..f1858c9c 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -309,7 +309,9 @@ eStaticServiceDVBPVRInformation::eStaticServiceDVBPVRInformation(const eServiceR
RESULT eStaticServiceDVBPVRInformation::getName(const eServiceReference &ref, std::string &name)
{
ASSERT(ref == m_ref);
- if (m_parser.m_name.size())
+ if (!ref.name.empty())
+ name = ref.name;
+ else if (!m_parser.m_name.empty())
name = m_parser.m_name;
else
{