X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fpmt.cpp;h=6f0c9ee0bd32e5440bba9dd27b1baaa33b8274ae;hp=febfd78e7813f00b739ff9a26b2ed5613c28120f;hb=afa141eedd597d0468d33b97a79f738a9ebfd11f;hpb=7b7a80a1f979b0bd9c68aa33af968db25bf63f81 diff --git a/lib/dvb/pmt.cpp b/lib/dvb/pmt.cpp index febfd78..6f0c9ee 100644 --- a/lib/dvb/pmt.cpp +++ b/lib/dvb/pmt.cpp @@ -268,7 +268,7 @@ void eDVBServicePMTHandler::AITready(int error) std::string boundaryExtension = ""; int controlCode = (*i)->getApplicationControlCode(); - ApplicationIdentifier * applicationIdentifier = (*i)->getApplicationIdentifier(); + const ApplicationIdentifier * applicationIdentifier = (*i)->getApplicationIdentifier(); profilecode = 0; orgid = applicationIdentifier->getOrganisationId(); appid = applicationIdentifier->getApplicationId(); @@ -285,7 +285,7 @@ void eDVBServicePMTHandler::AITready(int error) case APPLICATION_DESCRIPTOR: { ApplicationDescriptor* applicationDescriptor = (ApplicationDescriptor*)(*desc); - ApplicationProfileList* applicationProfiles = applicationDescriptor->getApplicationProfiles(); + const ApplicationProfileList* applicationProfiles = applicationDescriptor->getApplicationProfiles(); ApplicationProfileConstIterator interactionit = applicationProfiles->begin(); for(; interactionit != applicationProfiles->end(); ++interactionit) { @@ -353,7 +353,7 @@ void eDVBServicePMTHandler::AITready(int error) } if(!hbbtvUrl.empty()) { - char* uu = hbbtvUrl.c_str(); + const char* uu = hbbtvUrl.c_str(); if(!strncmp(uu, "http://", 7) || !strncmp(uu, "dvb://", 6) || !strncmp(uu, "https://", 8)) { if(controlCode == 1) m_HBBTVUrl = hbbtvUrl; @@ -420,7 +420,7 @@ void eDVBServicePMTHandler::OCready(int error) { for (std::vector::const_iterator it = ptr->getSections().begin(); it != ptr->getSections().end(); ++it) { - unsigned char* sectionData = (*it)->getData(); + unsigned char* sectionData = (unsigned char*)(*it)->getData(); } } /* for now, do not keep listening for table updates */ @@ -571,6 +571,13 @@ int eDVBServicePMTHandler::getProgramInfo(program &program) video.type = videoStream::vtMPEG4_H264; isvideo = 1; //break; fall through !!! + case 0x24: // H265 HEVC + if (!isvideo) + { + video.type = videoStream::vtH265_HEVC; + isvideo = 1; + } + //break; fall through !!! case 0x10: // MPEG 4 Part 2 if (!isvideo) {