diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2011-03-25 16:30:22 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2011-03-29 15:43:58 +0200 |
| commit | f45ad930a1f328f880def7e4caa5f48e76c3392f (patch) | |
| tree | 16c5ba0f2d3e3cfd89d2dcdf6c0812bcd200f737 /lib | |
| parent | d23552e65b55721d9288ed0789792b710db391a9 (diff) | |
| download | enigma2-f45ad930a1f328f880def7e4caa5f48e76c3392f.tar.gz enigma2-f45ad930a1f328f880def7e4caa5f48e76c3392f.zip | |
db: remove recursive loading of lamedb
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/db.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp index 522035eb..ccaecd4f 100644 --- a/lib/dvb/db.cpp +++ b/lib/dvb/db.cpp @@ -325,19 +325,11 @@ void eDVBDB::loadServicelist(const char *file) { eDebug("---- opening lame channel db"); FILE *f=fopen(file, "rt"); - if (!f && strcmp(file, eEnv::resolve("${sysconfdir}/enigma2/lamedb").c_str()) == 0) - { - struct stat s; - if ( !stat("lamedb", &s) ) - { - if ( !stat(eEnv::resolve("${sysconfdir}/enigma2").c_str(), &s) ) - { - rename("lamedb", eEnv::resolve("${sysconfdir}/enigma2/lamedb").c_str()); - reloadServicelist(); - } - } + if (!f) { + eDebug("can't open %s: %m", file); return; } + char line[256]; int version=3; if ((!fgets(line, 256, f)) || sscanf(line, "eDVB services /%d/", &version) != 1) |
