1
0
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:
Janosch Machowinski 2015-03-22 21:28:44 +01:00
parent 8913b173dc
commit 1731f24118

View File

@ -141,6 +141,13 @@ bool cPluginSatip::Initialize(void)
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();
cSatipDiscover::GetInstance()->Initialize(serversM);
return cSatipDevice::Initialize(deviceCountM);