mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Enabled sidfinder, if UpdateChannels variable is equal or greater than 4.
This commit is contained in:
parent
1584a4c017
commit
10554cf3a7
11
device.c
11
device.c
@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: device.c,v 1.45 2007/09/29 16:21:05 rahrenbe Exp $
|
||||
* $Id: device.c,v 1.46 2007/09/29 19:09:10 rahrenbe Exp $
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
@ -36,7 +36,7 @@ cIptvDevice::cIptvDevice(unsigned int Index)
|
||||
memset(&secfilters, '\0', sizeof(secfilters));
|
||||
StartSectionHandler();
|
||||
// Sid filter must be created after the section handler
|
||||
sidFinder = NULL; //new cSidFinder;
|
||||
sidFinder = new cSidFinder;
|
||||
if (sidFinder)
|
||||
AttachFilter(sidFinder);
|
||||
}
|
||||
@ -152,7 +152,7 @@ bool cIptvDevice::SetChannelDevice(const cChannel *Channel, bool LiveView)
|
||||
return false;
|
||||
}
|
||||
pIptvStreamer->Set(addr, port, protocol);
|
||||
if (sidFinder)
|
||||
if (sidFinder && (Setup.UpdateChannels >= 4))
|
||||
sidFinder->SetChannel(Channel);
|
||||
return true;
|
||||
}
|
||||
@ -228,7 +228,7 @@ bool cIptvDevice::OpenDvr(void)
|
||||
mutex.Unlock();
|
||||
ResetBuffering();
|
||||
pIptvStreamer->Open();
|
||||
if (sidFinder)
|
||||
if (sidFinder && (Setup.UpdateChannels >= 4))
|
||||
sidFinder->SetStatus(true);
|
||||
isOpenDvr = true;
|
||||
return true;
|
||||
@ -237,9 +237,8 @@ bool cIptvDevice::OpenDvr(void)
|
||||
void cIptvDevice::CloseDvr(void)
|
||||
{
|
||||
debug("cIptvDevice::CloseDvr(%d)\n", deviceIndex);
|
||||
if (sidFinder) {
|
||||
if (sidFinder && (Setup.UpdateChannels >= 4))
|
||||
sidFinder->SetStatus(false);
|
||||
}
|
||||
pIptvStreamer->Close();
|
||||
isOpenDvr = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user