Actions
Feature #874
closedExtra time before recordings - negative value is stored incorrectly
Feature #874:
Extra time before recordings - negative value is stored incorrectly
Start date:
2012-02-10
Due date:
% Done:
0%
Estimated time:
0:06 h
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)
Actions