Commit Graph

38 Commits

Author SHA1 Message Date
Stefan Seyfried
8dad062eff change time_monotonic_ms() from time_t to int64_t
time_monotonic_ms values did wrap every ~24 days, leading to problems
in code that did not cope with that. Instead of fixing all places where
relative comparisons with time_monotonic_ms() are made, just use a
bigger datatype. Convert all users to the new type.
2017-09-26 11:37:19 +02:00
Stefan Seyfried
13ab1ebc8a Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)
2016-10-22 11:37:40 +02:00
Jacek Jendrzej
b4fccb307c src/eitd/xmlutil.cpp fix possible segfault 2016-04-17 20:04:15 +02:00
Stefan Seyfried
eeee5bacab Merge remote-tracking branch 'uncool/cst-next'
This need buildfixes and some functional updates...
2015-12-13 17:41:55 +01:00
[CST] Focus
fc52af49da eitd/xmlutil.cpp: add support to read epg from directory without index.xml 2015-06-02 12:26:49 +03:00
[CST] Focus
36cec7d41f eitd/xmlutil.cpp: split read events code 2015-06-02 12:26:17 +03:00
[CST] Focus
37a2fc42d7 eitd/xmlutil.cpp: change event file name to match channel id order 2015-05-26 13:27:42 +03:00
Jacek Jendrzej
422c91d117 add pugixml 2015-04-28 10:12:23 +02:00
Jacek Jendrzej
2c3ecf6183 change check dir to check with jffs2 (mtd) 2015-03-31 12:12:14 +02:00
Jacek Jendrzej
22399f73e2 chhecking if epgdir directory exists for frequently save 2015-03-24 21:00:44 +01:00
Jacek Jendrzej
8227a01592 xmlinterface use const char instand char 2015-03-20 12:05:22 +01:00
Jacek Jendrzej
40fe7fae34 prevent possible segfault std::string if value NULL 2015-03-20 11:57:12 +01:00
Stefan Seyfried
ae21edb141 remove useless sync() calls
unless we had serious kernel bugs, those sync() calls
serve no useful purpose
2015-02-25 21:43:41 +01:00
[CST] Focus
839f78b9e5 eitd/xmlutil.cpp: add sync() after epg save is done 2015-02-22 19:01:42 +03:00
[CST] Focus
5d9e7a814d eitd: ignore neutrino epg filter, if filter was configured from xml 2015-02-15 12:57:29 +03:00
[CST] Focus
e8700de2b7 eitd: as long as neutrino using only first content classification,
reduce content classification caching (leaving old code with ifdef)
2015-01-30 19:47:30 +03:00
[CST] Focus
486d3692a6 eitd: add API to configure white EPG filter 2015-01-22 18:58:53 +03:00
Jacek Jendrzej
8e4af0b619 eitd: use check empty() instead of size() or length() 2015-01-01 19:02:41 +01:00
martii
0bcff8b930 eitd: Reduce sectionsd memory requirements:
* Various EPG related strings (language- and country keys, audio descriptions) come with a pretty low variance. Cache them, and use an index instead of allocating redundant strings for each and every SIevent.
* Storing content classifications in native format instead of std::string removes quite some memory overhead, too.

This saves about 250 bytes of RAM for every event cached, resulting in a considerably reduced sectionsd memory footprint.

Conflicts:
	src/eitd/xmlutil.cpp
2014-09-15 10:16:30 +04:00
[CST] Focus
026592e8fe Merge branch 'dvbsi++' into next
Conflicts:
	src/neutrino.cpp
	src/zapit/src/femanager.cpp
	src/zapit/src/getservices.cpp
	src/zapit/src/transponder.cpp
2013-02-28 16:39:34 +04:00
Stefan Seyfried
4dbeb3a31e neutrino: fix 32<->64bit format string warnings
use portable C99 format string macros for 64bit types to
fix many warnings when compiling for 64bit architectures,
add some (int) casts for size_t
2013-02-21 15:47:18 +01:00
Stefan Seyfried
0a366a4ae4 sectionsd: on-disk epg data has lower priority than on-air data
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
2013-02-20 21:19:05 +01:00
[CST] Bas
8dfa226920 neutrino: fix file locations. use the predetermined CONFIGDIR instead of hardcoding paths. 2013-01-25 10:33:40 +08:00
[CST] Focus
1f65f1bc80 eitd/xmlutil.cpp: fix crash, if epg data saved with older image -
item/item_description can be present and break parsing
2012-11-15 19:13:13 +04:00
[CST] Focus
0a0e92c0fa Merge branch 'dvbsi++' of coolstreamtech.de:cst-public-gui-neutrino into dvbsi++ 2012-05-29 16:52:50 +04:00
[CST] Focus
01f50bba06 eitd/SIevents.cpp: change SIcomponents and SIparentalRatings from set to vector -
no need to sort them, this decrease SIevent size
2012-05-29 16:32:07 +04:00
[CST] Focus
1cc3219c89 eitd: ifdef unused item/itemDescription, comment unused vps in SIevent 2012-05-29 13:12:35 +04:00
svenhoefer
4eeca53fd6 - eitd: fix possible buffer overflow while writing egp-data (patch by FlatTV) 2012-05-24 21:06:28 +02:00
satbaby
520cf0e150 eitd: -fix read/write epg collision 2012-05-08 13:55:47 +02:00
satbaby
4d620569b4 xmlutil.cpp: add deleteOldfileEvents 2012-05-06 21:47:36 +02:00
satbaby
aa2f00bcea xmlutil.cpp:use rename instead of cp 2012-05-03 19:49:54 +02:00
[CST] Focus
b072232956 rename CREATE_CHANNEL_ID_FROM_SERVICE_ORIGINALNETWORK_TRANSPORTSTREAM_ID to CREATE_CHANNEL_ID 2012-04-10 14:35:09 +04:00
[CST] Bas
ce9eb10ed0 Merge branch 'dvbsi++' of c00lstreamtech.de:cst-private-neutrino into includecleanup
Conflicts:
	src/eitd/SIlanguage.cpp
	src/eitd/SIsections.cpp
	src/eitd/dmx.cpp
	src/eitd/dmxapi.cpp
2012-03-08 12:17:03 +08:00
[CST] Focus
9e1ba71ae8 eitd: unify copyright header 2012-03-07 16:43:21 +04:00
[CST] Bas
96e7c51cff eitd: Fix files according to the new includes branch. 2012-03-06 14:50:02 +08:00
[CST] Focus
9ed6224258 eitd: save table id to xml and restore it 2012-02-27 13:39:28 +04:00
[CST] Focus
cc36b982d9 eitd: move epg filters to xmlutil.cpp 2012-02-14 13:25:27 +04:00
[CST] Focus
266349e36e eitd: rename savexml.cpp to xmlutil.cpp 2012-02-14 13:00:06 +04:00