hack to have primary and secondary decoder (for now)
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 8 Apr 2006 00:54:42 +0000 (00:54 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 8 Apr 2006 00:54:42 +0000 (00:54 +0000)
lib/dvb/demux.cpp
lib/dvb/demux.h

index bef5c93a02239b0cd5d07f5f83e222d9173fbeca..c8e711731323c63f1c524b28f5e064b1601d243e 100644 (file)
@@ -116,9 +116,9 @@ RESULT eDVBDemux::createTSRecorder(ePtr<iDVBTSRecorder> &recorder)
        return 0;
 }
 
-RESULT eDVBDemux::getMPEGDecoder(ePtr<iTSMPEGDecoder> &decoder)
+RESULT eDVBDemux::getMPEGDecoder(ePtr<iTSMPEGDecoder> &decoder, int primary)
 {
-       decoder = new eTSMPEGDecoder(this, 0);
+       decoder = new eTSMPEGDecoder(this, primary ? 0 : 1);
        return 0;
 }
 
index 19ed1a1e468750ba6373bee56ddf2416b758da1f..8f11e8403e6b9165bc69f9f8e3c292a39fb5b663 100644 (file)
@@ -19,7 +19,7 @@ public:
        
        RESULT createSectionReader(eMainloop *context, ePtr<iDVBSectionReader> &reader);
        RESULT createTSRecorder(ePtr<iDVBTSRecorder> &recorder);
-       RESULT getMPEGDecoder(ePtr<iTSMPEGDecoder> &reader);
+       RESULT getMPEGDecoder(ePtr<iTSMPEGDecoder> &reader, int primary);
        RESULT getSTC(pts_t &pts, int num);
        RESULT getCADemuxID(uint8_t &id) { id = demux; return 0; }
        RESULT flush();