Project

General

Profile

Actions

Feature #874

closed

Extra time before recordings - negative value is stored incorrectly

Added by Tomas Matejicek about 13 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Low
Assignee:
Category:
PVR / DVR
Target version:
-
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

Also available in: Atom PDF