git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epgcache.cpp: typo fixed
[enigma2.git]
/
lib
/
dvb
/
epgcache.cpp
diff --git
a/lib/dvb/epgcache.cpp
b/lib/dvb/epgcache.cpp
index 15248a6bf4da72783bd03bce213a0dfdd48275ae..ed31903cea67ff11615986f92fed4556ee471718 100644
(file)
--- a/
lib/dvb/epgcache.cpp
+++ b/
lib/dvb/epgcache.cpp
@@
-234,15
+234,14
@@
eEPGCache::eEPGCache()
void eEPGCache::setCacheFile(const char *path)
{
void eEPGCache::setCacheFile(const char *path)
{
- if (!strlen(m_filename))
+ bool inited = !!strlen(m_filename);
+ strncpy(m_filename, path, 1024);
+ if (!inited)
{
{
- strncpy(m_filename, path, 1024);
eDebug("[EPGC] setCacheFile read/write epg data from/to '%s'", m_filename);
if (eDVBLocalTimeHandler::getInstance()->ready())
timeUpdated();
}
eDebug("[EPGC] setCacheFile read/write epg data from/to '%s'", m_filename);
if (eDVBLocalTimeHandler::getInstance()->ready())
timeUpdated();
}
- else
- eDebug("[EPGC] setCacheFile already called... ignore '%s'", path);
}
void eEPGCache::timeUpdated()
}
void eEPGCache::timeUpdated()
@@
-259,7
+258,7
@@
void eEPGCache::timeUpdated()
{
if (it->second->state == -1) {
it->second->state=0;
{
if (it->second->state == -1) {
it->second->state=0;
- messages.send(Message(Message::startChannel, it->
second
));
+ messages.send(Message(Message::startChannel, it->
first
));
}
}
} else
}
}
} else