projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc3edc4
)
RecordTimer.py: fix parallel recording of the same event on multiple services
author
ghost
<andreas.monzner@multimedia-labs.de>
Thu, 20 Aug 2009 07:52:23 +0000
(09:52 +0200)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Thu, 20 Aug 2009 07:52:50 +0000
(09:52 +0200)
RecordTimer.py
patch
|
blob
|
history
diff --git
a/RecordTimer.py
b/RecordTimer.py
index
304a528
..
a6c19c0
100644
(file)
--- 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")
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
# fine. it worked, resources are allocated.
self.next_activation = self.begin
self.backoff = 0