From: ton.van.der.poel Date: Wed, 23 Feb 2011 20:42:57 +0000 (+0100) Subject: DVR - Bugfix - Duplicate recordings X-Git-Tag: 2.99~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c365f235cc997bd3df5f94939aa0fce8e7bea4f8;p=thirdparty%2Ftvheadend.git DVR - Bugfix - Duplicate recordings In some situations (I suspend my main pvr machine, and use a script to wake it up before recordings, this means I stop and start tvheadend multiple times a day), tvheadend starts parsing EPG-data agains AutoRec rules before previously scheduled recordings are loaded from disk. Since the check for duplicate recordings is not present in the code that loads previously scheduled recordings from disk, it would mean that when an autorec-rule was triggered, this would result in duplicate scheduled recordings. By first restoring previously scheduled recordings from disk and then loading the AutoRec rules, this situation can not happen anymore... --- diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index 365d8f146..aa59112f0 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -834,9 +834,9 @@ dvr_init(void) } } - dvr_autorec_init(); - dvr_db_load(); + + dvr_autorec_init(); } /**