diff --git a/HISTORY b/HISTORY index b335320..80f9bd4 100644 --- a/HISTORY +++ b/HISTORY @@ -60,5 +60,4 @@ VDR Plugin 'iptv' Revision History - Updated Italian translation (Thanks to Diego Pierotto). - Removed compatibility mode for old channels.conf format. -- EXT protocol is re-tuned only if iptv parameters differ. - Updated vlc2iptv script for new channels.conf format. diff --git a/streamer.c b/streamer.c index ef7b034..2171538 100644 --- a/streamer.c +++ b/streamer.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: streamer.c,v 1.32 2008/04/02 22:55:04 rahrenbe Exp $ + * $Id: streamer.c,v 1.33 2008/04/04 20:55:44 rahrenbe Exp $ */ #include @@ -16,10 +16,7 @@ cIptvStreamer::cIptvStreamer(cRingBufferLinear* RingBuffer, cMutex* Mutex) : cThread("IPTV streamer"), ringBuffer(RingBuffer), mutex(Mutex), - protocol(NULL), - location(""), - parameter(-1), - index(-1) + protocol(NULL) { debug("cIptvStreamer::cIptvStreamer()\n"); } @@ -79,17 +76,11 @@ bool cIptvStreamer::Close(void) // where thread Action() may be in the process of accessing the protocol. // Taking a mutex serializes the Close() and Action() -calls. if (mutex) - mutex->Lock(); + mutex->Lock(); if (protocol) protocol->Close(); if (mutex) mutex->Unlock(); - // reset stream variables - protocol = NULL; - location = cString(""); - parameter = -1; - index = -1; - return true; } @@ -97,11 +88,6 @@ bool cIptvStreamer::Set(const char* Location, const int Parameter, const int Ind { debug("cIptvStreamer::Set(): %s:%d\n", Location, Parameter); if (!isempty(Location)) { - // Check if (re)tune is needed - //if ((strcmp(*location, Location) == 0) && (parameter == Parameter) && (index == Index) && (protocol == Protocol)) { - // debug("cIptvStreamer::Set(): (Re)tune skipped\n"); - // return false; - // } // Update protocol; Close the existing one if changed if (protocol != Protocol) { if (protocol) @@ -111,12 +97,8 @@ bool cIptvStreamer::Set(const char* Location, const int Parameter, const int Ind protocol->Open(); } // Set protocol location and parameter - if (protocol) { - location = cString(Location); - parameter = Parameter; - index = Index; - protocol->Set(location, parameter, index); - } + if (protocol) + protocol->Set(Location, Parameter, Index); } return true; } diff --git a/streamer.h b/streamer.h index 215d355..65b79b2 100644 --- a/streamer.h +++ b/streamer.h @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: streamer.h,v 1.15 2008/04/02 20:22:48 rahrenbe Exp $ + * $Id: streamer.h,v 1.16 2008/04/04 20:55:44 rahrenbe Exp $ */ #ifndef __IPTV_STREAMER_H @@ -24,9 +24,6 @@ private: unsigned char* readBuffer; unsigned int readBufferLen; cIptvProtocolIf* protocol; - cString location; - int parameter; - int index; public: cIptvStreamer(cRingBufferLinear* RingBuffer, cMutex* Mutex);