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.
|
* 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"
|
#include "common.h"
|
||||||
@ -36,7 +36,7 @@ cIptvDevice::cIptvDevice(unsigned int Index)
|
|||||||
memset(&secfilters, '\0', sizeof(secfilters));
|
memset(&secfilters, '\0', sizeof(secfilters));
|
||||||
StartSectionHandler();
|
StartSectionHandler();
|
||||||
// Sid filter must be created after the section handler
|
// Sid filter must be created after the section handler
|
||||||
sidFinder = NULL; //new cSidFinder;
|
sidFinder = new cSidFinder;
|
||||||
if (sidFinder)
|
if (sidFinder)
|
||||||
AttachFilter(sidFinder);
|
AttachFilter(sidFinder);
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ bool cIptvDevice::SetChannelDevice(const cChannel *Channel, bool LiveView)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
pIptvStreamer->Set(addr, port, protocol);
|
pIptvStreamer->Set(addr, port, protocol);
|
||||||
if (sidFinder)
|
if (sidFinder && (Setup.UpdateChannels >= 4))
|
||||||
sidFinder->SetChannel(Channel);
|
sidFinder->SetChannel(Channel);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -228,7 +228,7 @@ bool cIptvDevice::OpenDvr(void)
|
|||||||
mutex.Unlock();
|
mutex.Unlock();
|
||||||
ResetBuffering();
|
ResetBuffering();
|
||||||
pIptvStreamer->Open();
|
pIptvStreamer->Open();
|
||||||
if (sidFinder)
|
if (sidFinder && (Setup.UpdateChannels >= 4))
|
||||||
sidFinder->SetStatus(true);
|
sidFinder->SetStatus(true);
|
||||||
isOpenDvr = true;
|
isOpenDvr = true;
|
||||||
return true;
|
return true;
|
||||||
@ -237,9 +237,8 @@ bool cIptvDevice::OpenDvr(void)
|
|||||||
void cIptvDevice::CloseDvr(void)
|
void cIptvDevice::CloseDvr(void)
|
||||||
{
|
{
|
||||||
debug("cIptvDevice::CloseDvr(%d)\n", deviceIndex);
|
debug("cIptvDevice::CloseDvr(%d)\n", deviceIndex);
|
||||||
if (sidFinder) {
|
if (sidFinder && (Setup.UpdateChannels >= 4))
|
||||||
sidFinder->SetStatus(false);
|
sidFinder->SetStatus(false);
|
||||||
}
|
|
||||||
pIptvStreamer->Close();
|
pIptvStreamer->Close();
|
||||||
isOpenDvr = false;
|
isOpenDvr = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user