add getRefCount to evaluate if a demux is in use
[enigma2.git] / lib / dvb / demux.h
index f539006337ed81d9e08bcd6eaf9b190584290b8d..b14dfd263f09311ecf5d3b50f2e5728cbb13f4a4 100644 (file)
@@ -19,11 +19,13 @@ 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();
        RESULT connectEvent(const Slot1<void,int> &event, ePtr<eConnection> &conn);
+       
+       int getRefCount() { return ref; }
 private:
        int adapter, demux;
        
@@ -76,6 +78,7 @@ public:
        RESULT setTimingPID(int pid);
        
        RESULT setTargetFD(int fd);
+       RESULT setTargetFilename(const char *filename);
        RESULT setBoundary(off_t max);
        
        RESULT stop();
@@ -93,6 +96,7 @@ private:
        ePtr<eDVBDemux> m_demux;
        
        int m_running, m_target_fd, m_source_fd;
+       std::string m_target_filename;
 };
 
 #endif