]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
DVR - Bugfix - Duplicate recordings 18/head
authorton.van.der.poel <ton.van.der.poel@ubuntu.(none)>
Wed, 23 Feb 2011 20:42:57 +0000 (21:42 +0100)
committerton.van.der.poel <ton.van.der.poel@ubuntu.(none)>
Wed, 23 Feb 2011 20:42:57 +0000 (21:42 +0100)
commitc365f235cc997bd3df5f94939aa0fce8e7bea4f8
tree864ea454462e996d4b8415ab01950161bbd2ae83
parenteee6e1c45b8cb343c36f948827a3e8d84d1701b0
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...
src/dvr/dvr_db.c