Add flag to services so we can mark services as dedicated 3D
authorLittlesat <Littlesat99@yahoo.com>
Thu, 26 Mar 2015 14:35:02 +0000 (15:35 +0100)
committerLittlesat <Littlesat99@yahoo.com>
Thu, 26 Mar 2015 14:35:02 +0000 (15:35 +0100)
This might allow to autoswitch to 3D for dedicated 3D services

lib/dvb/idvb.h
lib/service/iservice.h
lib/service/servicedvb.cpp

index 4f2cfe0..d5575ac 100644 (file)
@@ -298,10 +298,12 @@ public:
                dxNoDVB=4,  // dont use PMT for this service ( use cached pids )
                dxHoldName=8,
                dxNewFound=64,
+               dxIsDedicated3D=128,
        };
 
        bool usePMT() const { return !(m_flags & dxNoDVB); }
        bool isHidden() const { return m_flags & dxDontshow; }
+       bool isDedicated3D() const { return m_flags & dxIsDedicated3D; }
 
        CAID_LIST m_ca;
 
index 0983175..5a8460d 100644 (file)
@@ -388,6 +388,7 @@ public:
                sHBBTVUrl,
                sLiveStreamDemuxId,
                sBuffer,
+               sIsDedicated3D,
 
                sUser = 0x100
        };
index 6539e39..d4bd9a1 100644 (file)
@@ -1953,6 +1953,7 @@ int eDVBServicePlay::getInfo(int w)
                break;
        }
        case sIsCrypted: if (no_program_info) return false; return program.isCrypted();
+       case sIsDedicated3D: if (m_dvb_service) return m_dvb_service->isDedicated3D(); return false;
        case sVideoPID:
                if (m_dvb_service)
                {