From f15ee3f6cd34e4552f50dcc92a994198ed3b2dfe Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 2 Dec 2005 11:11:00 +0000 Subject: add support for listing satellites and providers use this new stuff in a simple case study (green and yellow button in service list.. feel free to implement a cool satellites/providers tree) prepare for splitted radio/tv mode --- lib/service/servicedvb.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/service/servicedvb.cpp') diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index 0de13215..14326914 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -359,9 +359,12 @@ RESULT eServiceFactoryDVB::list(const eServiceReference &ref, ePtr &ptr) { /* do we have a PVR service? */ - if (ref.flags & eServiceReference::flagDirectory) // bouquet + if ((ref.flags & eServiceReference::flagDirectory) == eServiceReference::flagDirectory) // bouquet { - ptr = new eStaticServiceDVBBouquetInformation; + if ( !ref.name.empty() ) + ptr = new eStaticServiceDVBInformation; + else + ptr = new eStaticServiceDVBBouquetInformation; return 0; } else if (!ref.path.empty()) -- cgit v1.2.3