diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-05-04 14:26:19 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-05-04 14:26:19 +0000 |
| commit | fa664bead71329a67c53bc1814a3d68d397045d1 (patch) | |
| tree | 9aac4a822adef4ebb159d215a89b5637ef97466c /lib/dvb/demux.cpp | |
| parent | 64527bb84e00d6643e1b1a9e757e0867506c3d74 (diff) | |
| download | enigma2-fa664bead71329a67c53bc1814a3d68d397045d1.tar.gz enigma2-fa664bead71329a67c53bc1814a3d68d397045d1.zip | |
improve filterRecordData
Diffstat (limited to 'lib/dvb/demux.cpp')
| -rw-r--r-- | lib/dvb/demux.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp index 22b09ffe..b6143ddf 100644 --- a/lib/dvb/demux.cpp +++ b/lib/dvb/demux.cpp @@ -144,12 +144,15 @@ RESULT eDVBDemux::getSTC(pts_t &pts, int num) if (ioctl(fd, DMX_GET_STC, &stc) < 0) { + eDebug("DMX_GET_STC failed!"); ::close(fd); return -1; } pts = stc.stc; + eDebug("DMX_GET_STC - %lld", pts); + ::close(fd); return 0; } @@ -405,7 +408,7 @@ public: void saveTimingInformation(const std::string &filename); protected: - void filterRecordData(const unsigned char *data, int len); + int filterRecordData(const unsigned char *data, int len, size_t ¤t_span_remaining); private: eMPEGStreamParserTS m_ts_parser; eMPEGStreamInformation m_stream_info; @@ -429,11 +432,13 @@ void eDVBRecordFileThread::saveTimingInformation(const std::string &filename) m_stream_info.save(filename.c_str()); } -void eDVBRecordFileThread::filterRecordData(const unsigned char *data, int len) +int eDVBRecordFileThread::filterRecordData(const unsigned char *data, int len, size_t ¤t_span_remaining) { m_ts_parser.parseData(m_current_offset, data, len); m_current_offset += len; + + return len; } DEFINE_REF(eDVBTSRecorder); |
