git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
live is hard
[enigma2.git]
/
lib
/
dvb
/
epgcache.cpp
diff --git
a/lib/dvb/epgcache.cpp
b/lib/dvb/epgcache.cpp
index acdc9a9d1ae4ef6c979208e73ce64a8bbfe2ea77..6c98011b70570770506f3ca1747f8860e1d9d706 100644
(file)
--- a/
lib/dvb/epgcache.cpp
+++ b/
lib/dvb/epgcache.cpp
@@
-861,11
+861,10
@@
void eEPGCache::thread()
void eEPGCache::load()
{
void eEPGCache::load()
{
- unlink("/hdd/epg.dat.$$$");
- rename("/hdd/epg.dat", "/hdd/epg.dat.$$$");
- FILE *f = fopen("/hdd/epg.dat.$$$", "r");
+ FILE *f = fopen("/hdd/epg.dat", "r");
if (f)
{
if (f)
{
+ unlink("/hdd/epg.dat");
int size=0;
int cnt=0;
#if 0
int size=0;
int cnt=0;
#if 0
@@
-893,7
+892,6
@@
void eEPGCache::load()
{
eDebug("[EPGC] epg file has incorrect byte order.. dont read it");
fclose(f);
{
eDebug("[EPGC] epg file has incorrect byte order.. dont read it");
fclose(f);
- unlink("/hdd/epg.dat.$$$");
return;
}
char text1[13];
return;
}
char text1[13];
@@
-972,7
+970,6
@@
void eEPGCache::load()
fclose(f);
}
}
fclose(f);
}
}
- unlink("/hdd/epg.dat.$$$");
}
void eEPGCache::save()
}
void eEPGCache::save()