mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Added runtime check for wrong curl version
Curl might be installed in a wrong version, even if it was compiled with the right one. This is the case if a ubunutu/debian package with a broken dependency is installed.
This commit is contained in:
parent
8913b173dc
commit
1731f24118
7
satip.c
7
satip.c
@ -141,6 +141,13 @@ bool cPluginSatip::Initialize(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curl_version_info_data *curlVersion = curl_version_info(CURLVERSION_NOW);
|
||||||
|
if(curlVersion->version_num < 0x072400)
|
||||||
|
{
|
||||||
|
error("CURL version >= 7.36.0 required");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
cSatipPoller::GetInstance()->Initialize();
|
cSatipPoller::GetInstance()->Initialize();
|
||||||
cSatipDiscover::GetInstance()->Initialize(serversM);
|
cSatipDiscover::GetInstance()->Initialize(serversM);
|
||||||
return cSatipDevice::Initialize(deviceCountM);
|
return cSatipDevice::Initialize(deviceCountM);
|
||||||
|
Loading…
Reference in New Issue
Block a user