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/base/filepush.h | |
| parent | 64527bb84e00d6643e1b1a9e757e0867506c3d74 (diff) | |
| download | enigma2-fa664bead71329a67c53bc1814a3d68d397045d1.tar.gz enigma2-fa664bead71329a67c53bc1814a3d68d397045d1.zip | |
improve filterRecordData
Diffstat (limited to 'lib/base/filepush.h')
| -rw-r--r-- | lib/base/filepush.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/base/filepush.h b/lib/base/filepush.h index d3f32d75..71ee9979 100644 --- a/lib/base/filepush.h +++ b/lib/base/filepush.h @@ -19,7 +19,7 @@ class eFilePushThread: public eThread, public Object { int prio_class, prio; public: - eFilePushThread(int prio_class=IOPRIO_CLASS_BE, int prio_level=0); + eFilePushThread(int prio_class=IOPRIO_CLASS_BE, int prio_level=0, int blocksize=188); void thread(); void stop(); void start(int sourcefd, int destfd); @@ -47,15 +47,16 @@ public: /* you can send private events if you want */ void sendEvent(int evt); protected: - virtual void filterRecordData(const unsigned char *data, int len); + virtual int filterRecordData(const unsigned char *data, int len, size_t ¤t_span_remaining); private: iFilePushScatterGather *m_sg; int m_stop; unsigned char m_buffer[65536]; - int m_buf_start, m_buf_end; + int m_buf_start, m_buf_end, m_filter_end; int m_fd_dest; int m_send_pvr_commit; int m_stream_mode; + int m_blocksize; eRawFile m_raw_source; |
