hard coded stop on error. for old behavior set stop_threshold to 0
This commit is contained in:
parent
f5b1b7ca4a
commit
ded3fd5f1c
@ -1,11 +1,10 @@
|
||||
general:
|
||||
helptext: Sometimes it can happen, that a file is corrupt but still playable,
|
||||
this can produce an streaming error over all following files. The only way
|
||||
in this case is, to stop ffplayout and start it again here we only say it
|
||||
can stop, the starting process is in your hand. Best way is a systemd serivce
|
||||
in this case is, to stop ffplayout and start it again. Here we only say when
|
||||
it stops, the starting process is in your hand. Best way is a systemd serivce
|
||||
on linux. 'stop_threshold' stop ffplayout, if it is async in time above this
|
||||
value.
|
||||
stop_on_error: True
|
||||
stop_threshold: 11
|
||||
|
||||
mail:
|
||||
|
@ -182,8 +182,7 @@ def load_config():
|
||||
|
||||
cfg = read_config()
|
||||
|
||||
sync_op.stop = cfg['general']['stop_on_error']
|
||||
sync_op.threshold = cfg['general']['stop_threshold']
|
||||
sync_op.threshold = int(cfg['general']['stop_threshold'])
|
||||
|
||||
mail.subject = cfg['mail']['subject']
|
||||
mail.server = cfg['mail']['smpt_server']
|
||||
@ -814,7 +813,7 @@ def check_sync(delta):
|
||||
# this is needed for real time filter
|
||||
sync_op.time_delta = delta
|
||||
|
||||
if sync_op.stop and abs(delta) > sync_op.threshold:
|
||||
if abs(delta) > sync_op.threshold > 0:
|
||||
messenger.error(
|
||||
f'Sync tolerance value exceeded with {delta:.2f} seconds,\n'
|
||||
'program terminated!')
|
||||
|
Loading…
x
Reference in New Issue
Block a user