From fdda49c9f3341913aa1f7497a3384f7dc24e06cc Mon Sep 17 00:00:00 2001 From: schmirl Date: Tue, 24 Apr 2007 11:42:41 +0000 Subject: [PATCH] server_live-filter_remove_setfilter.patch by Petri Hintukainen - remove (now unused) cStreamdevLiveStreamer::SetFilter() Modified Files: server/livestreamer.c server/livestreamer.h --- server/livestreamer.c | 19 ------------------- server/livestreamer.h | 1 - 2 files changed, 20 deletions(-) diff --git a/server/livestreamer.c b/server/livestreamer.c index 1ba3450..1bbeddb 100644 --- a/server/livestreamer.c +++ b/server/livestreamer.c @@ -457,25 +457,6 @@ bool cStreamdevLiveStreamer::SetChannel(const cChannel *Channel, eStreamType Str return false; } -bool cStreamdevLiveStreamer::SetFilter(u_short Pid, u_char Tid, u_char Mask, bool On) -{ -#if 0 - Dprintf("setting filter\n"); - if (On) { - if (m_Filter == NULL) { - m_Filter = new cStreamdevLiveFilter(this); - Dprintf("attaching filter to device\n"); - m_Device->AttachFilter(m_Filter); - } - m_Filter->Set(Pid, Tid, Mask); - } else if (m_Filter != NULL) - m_Filter->Del(Pid, Tid, Mask); - return true; -#else - return false; -#endif -} - int cStreamdevLiveStreamer::Put(const uchar *Data, int Count) { switch (m_StreamType) { diff --git a/server/livestreamer.h b/server/livestreamer.h index f29eef2..1973f71 100644 --- a/server/livestreamer.h +++ b/server/livestreamer.h @@ -42,7 +42,6 @@ public: bool SetPid(int Pid, bool On); bool SetPids(int Pid, const int *Pids1 = NULL, const int *Pids2 = NULL, const int *Pids3 = NULL); bool SetChannel(const cChannel *Channel, eStreamType StreamType, int Apid = 0); - bool SetFilter(u_short Pid, u_char Tid, u_char Mask, bool On); virtual int Put(const uchar *Data, int Count); virtual uchar *Get(int &Count);