This project is closed and read-only.
Feature #874
closedExtra time before recordings - negative value is stored incorrectly
0%
Description
This bug can be fixed very easily.
I tried to store a negative value (like -10) for Extra time before recordings (preExtraTime) through the webGUI of tvheadend.
This can be useful to start recording later than the EPG claims it starts.
Unfortunately there is a function call htsmsg_add_u32() and htsmsg_get_u32() which handles this parameter on several places, making negative value overflow due to signed/unsigned integer problem.
To fix this, you just have to use htsmsg_add_s32() and htsmsg_get_s32() everywhere where you save/restore settings for preExtraTime, and preferably also for postExtraTime. That's very quick fix in just few files and few lines.
That's it! This tiny fix will add great feature (to postpone recording)