diff options
Diffstat (limited to 'lib/dvb')
| -rw-r--r-- | lib/dvb/demux.cpp | 4 | ||||
| -rw-r--r-- | lib/dvb/demux.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp index bef5c93a..c8e71173 100644 --- a/lib/dvb/demux.cpp +++ b/lib/dvb/demux.cpp @@ -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; } diff --git a/lib/dvb/demux.h b/lib/dvb/demux.h index 19ed1a1e..8f11e840 100644 --- a/lib/dvb/demux.h +++ b/lib/dvb/demux.h @@ -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(); |
