git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use POLLIN instead of POLLPRI for clip buffer empty
[enigma2.git]
/
lib
/
base
/
filepush.h
diff --git
a/lib/base/filepush.h
b/lib/base/filepush.h
index 35671cd6ef23146d3fb638018265bb0bb23241a0..71ee99794509f18d92607493bb27fe622d18aec6 100644
(file)
--- a/
lib/base/filepush.h
+++ b/
lib/base/filepush.h
@@
-2,6
+2,7
@@
#define __lib_base_filepush_h
#include <lib/base/thread.h>
#define __lib_base_filepush_h
#include <lib/base/thread.h>
+#include <lib/base/ioprio.h>
#include <libsig_comp.h>
#include <lib/base/message.h>
#include <sys/types.h>
#include <libsig_comp.h>
#include <lib/base/message.h>
#include <sys/types.h>
@@
-16,8
+17,9
@@
public:
class eFilePushThread: public eThread, public Object
{
class eFilePushThread: public eThread, public Object
{
+ int prio_class, prio;
public:
public:
- eFilePushThread();
+ eFilePushThread(
int prio_class=IOPRIO_CLASS_BE, int prio_level=0, int blocksize=188
);
void thread();
void stop();
void start(int sourcefd, int destfd);
void thread();
void stop();
void start(int sourcefd, int destfd);
@@
-31,6
+33,9
@@
public:
void flush();
void enablePVRCommit(int);
void flush();
void enablePVRCommit(int);
+ /* stream mode will wait on EOF until more data is available. */
+ void setStreamMode(int);
+
void setScatterGather(iFilePushScatterGather *);
enum { evtEOF, evtReadError, evtWriteError, evtUser };
void setScatterGather(iFilePushScatterGather *);
enum { evtEOF, evtReadError, evtWriteError, evtUser };
@@
-42,15
+47,17
@@
public:
/* you can send private events if you want */
void sendEvent(int evt);
protected:
/* 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];
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_fd_dest;
int m_send_pvr_commit;
-
+ int m_stream_mode;
+ int m_blocksize;
+
eRawFile m_raw_source;
eFixedMessagePump<int> m_messagepump;
eRawFile m_raw_source;
eFixedMessagePump<int> m_messagepump;