RESULT createSectionReader(eMainloop *context, ePtr<iDVBSectionReader> &reader);
RESULT createTSRecorder(ePtr<iDVBTSRecorder> &recorder);
- RESULT getMPEGDecoder(ePtr<iTSMPEGDecoder> &reader);
- RESULT getSTC(pts_t &pts);
+ 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;
friend class eDVBAudio;
friend class eDVBVideo;
friend class eDVBPCR;
+ friend class eDVBTText;
friend class eDVBTSRecorder;
friend class eDVBCAService;
Signal1<void, int> m_event;
RESULT connectRead(const Slot1<void,const __u8*> &read, ePtr<eConnection> &conn);
};
-class eFilePushThread;
+class eDVBRecordFileThread;
class eDVBTSRecorder: public iDVBTSRecorder, public Object
{
RESULT addPID(int pid);
RESULT removePID(int pid);
- RESULT setFormat(int pid);
+ RESULT setTimingPID(int pid);
RESULT setTargetFD(int fd);
+ RESULT setTargetFilename(const char *filename);
RESULT setBoundary(off_t max);
RESULT stop();
RESULT startPID(int pid);
void stopPID(int pid);
- eFilePushThread *m_thread;
+ eDVBRecordFileThread *m_thread;
std::map<int,int> m_pids;
Signal1<void,int> m_event;
ePtr<eDVBDemux> m_demux;
- int m_running, m_format, m_target_fd, m_source_fd;
+ int m_running, m_target_fd, m_source_fd;
+ std::string m_target_filename;
};
#endif