From: Jaroslav Kysela Date: Tue, 5 May 2015 09:19:28 +0000 (+0200) Subject: DVR: Allow to modify the scheduled stop time when the recording is active X-Git-Tag: v4.1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a35e4b58c4db7ab9b6a40648ccc8296b34b96eb;p=thirdparty%2Ftvheadend.git DVR: Allow to modify the scheduled stop time when the recording is active --- diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index c41a10cee..7e9846ff9 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -1291,7 +1291,11 @@ dvr_entry_class_stop_set(void *o, const void *_v) } if (v < de->de_start) v = de->de_start; - return dvr_entry_class_time_set(de, &de->de_stop, v); + if (v != de->de_stop) { + de->de_stop = v; + return 1; + } + return 0; } static int