only log and check sync when _playlist.length is set

This commit is contained in:
jb-alvarado 2019-11-09 21:29:13 +01:00
parent 114186feaa
commit 92de127111

View File

@ -880,7 +880,7 @@ def timed_source(src, begin, dur, seek, out, first, last):
src, dur, seek, out) src, dur, seek, out)
else: else:
if not stdin_args.loop: if not stdin_args.loop and _playlist.length:
check_sync(current_delta) check_sync(current_delta)
messenger.debug('current_delta: {:f}'.format(current_delta)) messenger.debug('current_delta: {:f}'.format(current_delta))
messenger.debug('total_delta: {:f}'.format(total_delta)) messenger.debug('total_delta: {:f}'.format(total_delta))