1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Revert non-working retuning optimization.

This commit is contained in:
Rolf Ahrenberg 2008-04-04 20:55:44 +00:00
parent c507f373ff
commit 6fa46ca9e3
3 changed files with 6 additions and 28 deletions

View File

@ -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.

View File

@ -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 <vdr/thread.h>
@ -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");
}
@ -84,12 +81,6 @@ bool cIptvStreamer::Close(void)
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;
}

View File

@ -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);