lib/service/servicedvb.cpp: add possibility to override servicename for pvr dvb services
authorghost <andreas.monzner@multimedia-labs.de>
Thu, 25 Nov 2010 15:15:20 +0000 (16:15 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Thu, 25 Nov 2010 15:15:20 +0000 (16:15 +0100)
lib/service/servicedvb.cpp

index 0d617c3..f1858c9 100644 (file)
@@ -309,7 +309,9 @@ eStaticServiceDVBPVRInformation::eStaticServiceDVBPVRInformation(const eServiceR
 RESULT eStaticServiceDVBPVRInformation::getName(const eServiceReference &ref, std::string &name)
 {
        ASSERT(ref == m_ref);
 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
        {
                name = m_parser.m_name;
        else
        {