2010-12-02 08:53:01 +01:00
|
|
|
/*
|
2010-12-02 09:43:13 +01:00
|
|
|
* $Id: filter.h,v 1.5 2008/04/07 14:27:28 schmirl Exp $
|
2010-12-02 08:53:01 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VDR_STREAMDEV_FILTER_H
|
|
|
|
#define VDR_STREAMDEV_FILTER_H
|
|
|
|
|
|
|
|
#include <vdr/config.h>
|
|
|
|
#include <vdr/tools.h>
|
|
|
|
#include <vdr/thread.h>
|
|
|
|
|
2010-12-02 08:59:14 +01:00
|
|
|
class cTSBuffer;
|
|
|
|
class cStreamdevFilter;
|
2010-12-02 08:53:01 +01:00
|
|
|
|
|
|
|
class cStreamdevFilters: public cList<cStreamdevFilter>, public cThread {
|
|
|
|
private:
|
2010-12-02 08:59:14 +01:00
|
|
|
cTSBuffer *m_TSBuffer;
|
|
|
|
|
2010-12-02 08:53:01 +01:00
|
|
|
protected:
|
|
|
|
virtual void Action(void);
|
2010-12-02 08:59:14 +01:00
|
|
|
void CarbageCollect(void);
|
|
|
|
|
|
|
|
bool ReActivateFilters(void);
|
2010-12-02 08:53:01 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
cStreamdevFilters(void);
|
|
|
|
virtual ~cStreamdevFilters();
|
|
|
|
|
2010-12-02 08:59:14 +01:00
|
|
|
void SetConnection(int Handle);
|
2010-12-02 08:53:01 +01:00
|
|
|
int OpenFilter(u_short Pid, u_char Tid, u_char Mask);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VDR_STREAMDEV_FILTER_H
|