Make sure that a FilterStreamer is only started if client supports it

(#261)
Modified Files:
	client/socket.c server/connectionVTP.c server/connectionVTP.h
This commit is contained in:
schmirl
2008-03-13 16:01:17 +00:00
parent 650b4d5443
commit 21da96308d
3 changed files with 22 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: socket.c,v 1.8 2007/04/24 10:57:34 schmirl Exp $
* $Id: socket.c,v 1.9 2008/03/13 16:01:17 schmirl Exp $
*/
#include <tools/select.h>
@@ -140,8 +140,14 @@ bool cClientSocket::CheckConnection(void) {
return false;
}
isyslog("Streamdev: Connected to server %s:%d using capabilities TSPIDS",
RemoteIp().c_str(), RemotePort());
const char *Filters = "";
#if VDRVERSNUM >= 10300
if(Command("CAPS FILTERS", 220))
Filters = ",FILTERS";
#endif
isyslog("Streamdev: Connected to server %s:%d using capabilities TSPIDS%s",
RemoteIp().c_str(), RemotePort(), Filters);
return true;
}