diff --git a/server/livestreamer.c b/server/livestreamer.c index bb21ef1..c2ba110 100644 --- a/server/livestreamer.c +++ b/server/livestreamer.c @@ -350,12 +350,12 @@ cStreamdevLiveStreamer::cStreamdevLiveStreamer(const cServerConnection *Connecti m_ReceiveBuffer = new cStreamdevBuffer(LIVEBUFSIZE, TS_SIZE *2, true, "streamdev-livestreamer"), m_ReceiveBuffer->SetTimeouts(0, 100); if (Priority == IDLEPRIORITY) { - SetChannel(Channel, StreamType, Apid, Dpid); + SetChannel(Apid, Dpid); } else { m_Device = SwitchDevice(Channel, Priority); if (m_Device) - SetChannel(Channel, StreamType, Apid, Dpid); + SetChannel(Apid, Dpid); } } @@ -487,12 +487,10 @@ void cStreamdevLiveStreamer::StartReceiver(void) DELETENULL(m_Receiver); } -bool cStreamdevLiveStreamer::SetChannel(const cChannel *Channel, eStreamType StreamType, const int* Apid, const int *Dpid) +bool cStreamdevLiveStreamer::SetChannel(const int* Apid, const int *Dpid) { Dprintf("Initializing Remuxer for full channel transfer\n"); //printf("ca pid: %d\n", Channel->Ca()); - m_Channel = Channel; - m_StreamType = StreamType; const int *Apids = Apid ? Apid : m_Channel->Apids(); const int *Dpids = Dpid ? Dpid : m_Channel->Dpids(); diff --git a/server/livestreamer.h b/server/livestreamer.h index 4e89cf8..e259ee9 100644 --- a/server/livestreamer.h +++ b/server/livestreamer.h @@ -42,9 +42,7 @@ private: /* Find a suitable device and tune it to the requested channel. */ cDevice *SwitchDevice(const cChannel *Channel, int Priority); - void SetDevice(cDevice *Device) { m_Device = Device; } - - bool SetChannel(const cChannel *Channel, eStreamType StreamType, const int* Apid = NULL, const int* Dpid = NULL); + bool SetChannel(const int* Apid = NULL, const int* Dpid = NULL); protected: virtual uchar* GetFromReceiver(int &Count) { return m_ReceiveBuffer->Get(Count); }