neutrinoapi.cpp: fix path to iso tab introduced with ff16cbb

Origin commit data
------------------
Branch: ni/coolstream
Commit: e5d8760852
Author: GetAway <get-away@t-online.de>
Date: 2018-01-21 (Sun, 21 Jan 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2018-01-21 20:30:33 +01:00
committed by vanhofen
parent 2585c26fce
commit 306d79d733

View File

@@ -18,6 +18,7 @@
#include <fstream>
#include <map>
#include <sstream>
#include <iostream>
// tuxbox
#include <neutrinoMessages.h>
@@ -67,10 +68,13 @@ extern CZapitClient::SatelliteList satList;
//static std::map<std::string, std::string> iso639;
#ifndef initialize_iso639_map
#define ISO_639_TAB DATADIR "/iso-codes/iso-639.tab"
static const char * iso639filename = ISO_639_TAB;
bool _initialize_iso639_map(void)
{
std::string s, t, u, v;
std::ifstream in("/share/iso-codes/iso-639.tab");
std::ifstream in(iso639filename);
if (in.is_open())
{
while (in.peek() == '#')
@@ -86,7 +90,10 @@ bool _initialize_iso639_map(void)
return true;
}
else
{
std::cout << "[neutrinoapi.cpp] Loading " << iso639filename << " failed." << std::endl;
return false;
}
}
#endif
//-----------------------------------------------------------------------------