diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-08-20 09:52:23 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-08-20 09:52:50 +0200 |
| commit | 78852d8e7eb86a36e15d0fe5dd77fcfc624084c1 (patch) | |
| tree | b50aacb2204f48003aafdca7288c3d9e99e71ac0 | |
| parent | cc3edc410e06e566c3cd33fa0d23e92d0cc987a8 (diff) | |
| download | enigma2-78852d8e7eb86a36e15d0fe5dd77fcfc624084c1.tar.gz enigma2-78852d8e7eb86a36e15d0fe5dd77fcfc624084c1.zip | |
RecordTimer.py: fix parallel recording of the same event on multiple services
| -rw-r--r-- | RecordTimer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/RecordTimer.py b/RecordTimer.py index 304a5284..a6c19c05 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -217,6 +217,11 @@ class RecordTimerEntry(timer.TimerEntry, object): if next_state == self.StatePrepared: if self.tryPrepare(): self.log(6, "prepare ok, waiting for begin") + # create file to "reserve" the filename + # because another recording at the same time on another service can try to record the same event + # i.e. cable / sat.. then the second recording needs an own extension... when we create the file + # here than calculateFilename is happy + open(self.Filename + ".ts", "w").close() # fine. it worked, resources are allocated. self.next_activation = self.begin self.backoff = 0 |
