Merge branch 'bug_124_m2ts_support'
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 16 Feb 2011 13:31:31 +0000 (14:31 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 16 Feb 2011 13:31:31 +0000 (14:31 +0100)
Conflicts:
lib/dvb/pmt.cpp
lib/service/Makefile.am

1  2 
lib/dvb/esection.h
lib/dvb/pmt.cpp
lib/dvb/pmt.h
lib/dvb/tstools.cpp
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
lib/service/Makefile.am
lib/service/servicedvb.cpp

Simple merge
diff --cc lib/dvb/pmt.cpp
index ca56141bc89115c4ba32bdc15f27a1bf4f465503,dc2e9a88f75bc2f52584062f3d5e3f6afd69053d..4ad4e76f0a962e51a1c5b4b296756d430f46e7e6
@@@ -230,8 -244,26 +261,29 @@@ int eDVBServicePMTHandler::getProgramIn
                        for (i = ptr->getSections().begin(); i != ptr->getSections().end(); ++i)
                        {
                                const ProgramMapSection &pmt = **i;
+                               int is_hdmv = 0;
                                program.pcrPid = pmt.getPcrPid();
  
 -                                              program.caids.insert(descr->getCaSystemId());
+                               for (DescriptorConstIterator desc = pmt.getDescriptors()->begin();
+                                       desc != pmt.getDescriptors()->end(); ++desc)
+                               {
+                                       if ((*desc)->getTag() == CA_DESCRIPTOR)
+                                       {
+                                               CaDescriptor *descr = (CaDescriptor*)(*desc);
++                                              program::capid_pair pair;
++                                              pair.caid = descr->getCaSystemId();
++                                              pair.capid = descr->getCaPid();
++                                              program.caids.push_back(pair);
+                                       }
+                                       else if ((*desc)->getTag() == REGISTRATION_DESCRIPTOR)
+                                       {
+                                               RegistrationDescriptor *d = (RegistrationDescriptor*)(*desc);
+                                               if (d->getFormatIdentifier() == 0x48444d56) // HDMV
+                                                       is_hdmv = 1;
+                                       }
+                               }
                                ElementaryStreamInfoConstIterator es;
                                for (es = pmt.getEsInfo()->begin(); es != pmt.getEsInfo()->end(); ++es)
                                {
diff --cc lib/dvb/pmt.h
Simple merge
Simple merge
index b44a2470944788d3e299acae821039763230a566,d61dbc76ae9f333d65ae5098515fb7a92b7754a1..6ff1c5a50ac9a9e8a4ceb0968b86dfae406a4968
mode 100644,100755..100644
index edafd1a2ac2a540940c87beb68cbd1f26c4b2306,795900a636a44e0bbc2a2b0d7453be0144ff2a75..9f956b66c078734c4975c48d3ecd6c71d0682f42
@@@ -10,28 -4,5 +10,30 @@@ AM_CXXFLAGS = 
  noinst_LIBRARIES = libenigma_service.a
  
  libenigma_service_a_SOURCES = \
 -      listboxservice.cpp service.cpp servicemp3.cpp servicedvb.cpp servicefs.cpp \
 -      servicem2ts.cpp event.cpp servicedvbrecord.cpp
 +      event.cpp \
 +      listboxservice.cpp \
 +      service.cpp \
 +      servicedvb.cpp \
 +      servicedvbrecord.cpp \
 +      servicefs.cpp \
-       servicemp3.cpp
++      servicemp3.cpp \
++      servicem2ts.cpp
 +
 +serviceincludedir = $(pkgincludedir)/lib/service
 +serviceinclude_HEADERS = \
 +      event.h \
 +      iservice.h \
 +      listboxservice.h \
 +      service.h \
 +      servicedvb.h \
 +      servicedvbrecord.h \
 +      servicefs.h \
-       servicemp3.h
++      servicemp3.h \
++      servicem2ts.h
 +
 +if HAVE_LIBXINE
 +libenigma_service_a_SOURCES += \
 +      servicexine.cpp
 +serviceinclude_HEADERS += \
 +      servicexine.h
 +endif
Simple merge