mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	server_live-filter_remove_setfilter.patch by Petri Hintukainen
- remove (now unused) cStreamdevLiveStreamer::SetFilter() Modified Files: server/livestreamer.c server/livestreamer.h
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user