summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/connectionVTP.c18
-rw-r--r--server/connectionVTP.h1
2 files changed, 13 insertions, 6 deletions
diff --git a/server/connectionVTP.c b/server/connectionVTP.c
index 60237ea..2829c13 100644
--- a/server/connectionVTP.c
+++ b/server/connectionVTP.c
@@ -1,5 +1,5 @@
/*
- * $Id: connectionVTP.c,v 1.16 2008/03/12 09:36:27 schmirl Exp $
+ * $Id: connectionVTP.c,v 1.17 2008/03/13 16:01:18 schmirl Exp $
*/
#include "server/connectionVTP.h"
@@ -478,6 +478,7 @@ cConnectionVTP::cConnectionVTP(void):
m_FilterStreamer(NULL),
m_LastCommand(NULL),
m_StreamType(stTSPIDS),
+ m_FiltersSupport(false),
m_LSTEHandler(NULL),
m_LSTCHandler(NULL),
m_LSTTHandler(NULL)
@@ -608,8 +609,10 @@ bool cConnectionVTP::CmdCAPS(char *Opts)
//
// Deliver section filters data in separate, channel-independent data stream
//
- if (strcasecmp(Opts, "FILTERS") == 0)
+ if (strcasecmp(Opts, "FILTERS") == 0) {
+ m_FiltersSupport = true;
return Respond(220, "Capability \"%s\" accepted", Opts);
+ }
#endif
return Respond(561, "Capability \"%s\" not known", Opts);
@@ -680,6 +683,7 @@ bool cConnectionVTP::CmdPORT(char *Opts)
#if VDRVERSNUM >= 10300
if (id == siLiveFilter) {
+ m_FiltersSupport = true;
if(m_FilterStreamer)
m_FilterStreamer->Stop();
delete m_FilterSocket;
@@ -743,10 +747,12 @@ bool cConnectionVTP::CmdTUNE(char *Opts)
m_LiveStreamer->Start(m_LiveSocket);
#if VDRVERSNUM >= 10300
- if(!m_FilterStreamer)
- m_FilterStreamer = new cStreamdevFilterStreamer;
- m_FilterStreamer->SetDevice(dev);
- //m_FilterStreamer->SetChannel(chan);
+ if(m_FiltersSupport) {
+ if(!m_FilterStreamer)
+ m_FilterStreamer = new cStreamdevFilterStreamer;
+ m_FilterStreamer->SetDevice(dev);
+ //m_FilterStreamer->SetChannel(chan);
+ }
#endif
return Respond(220, "Channel tuned");
diff --git a/server/connectionVTP.h b/server/connectionVTP.h
index aa9a90f..3acb1a2 100644
--- a/server/connectionVTP.h
+++ b/server/connectionVTP.h
@@ -24,6 +24,7 @@ private:
char *m_LastCommand;
eStreamType m_StreamType;
+ bool m_FiltersSupport;
// Members adopted for SVDRP
cRecordings Recordings;