set begin to list_start and list_start to current time on loop, fix #91
This commit is contained in:
parent
28464ceb6c
commit
dfab8c9b5d
@ -388,8 +388,7 @@ class GetSourceFromPlaylist:
|
|||||||
if stdin_args.loop and self.node:
|
if stdin_args.loop and self.node:
|
||||||
# when loop paramter is set and playlist node exists,
|
# when loop paramter is set and playlist node exists,
|
||||||
# jump to playlist start and play again
|
# jump to playlist start and play again
|
||||||
self.list_start = self.node['begin'] + (
|
self.list_start = get_time('full_sec')
|
||||||
self.node['out'] - self.node['seek'])
|
|
||||||
self.node = None
|
self.node = None
|
||||||
messenger.info('Loop playlist')
|
messenger.info('Loop playlist')
|
||||||
|
|
||||||
@ -410,7 +409,7 @@ class GetSourceFromPlaylist:
|
|||||||
"""
|
"""
|
||||||
while True:
|
while True:
|
||||||
self.get_playlist()
|
self.get_playlist()
|
||||||
begin = _playlist.start
|
begin = self.list_start
|
||||||
|
|
||||||
for index, self.node in enumerate(self.clip_nodes):
|
for index, self.node in enumerate(self.clip_nodes):
|
||||||
self.node['seek'] = get_float(self.node.get('in'), 0)
|
self.node['seek'] = get_float(self.node.get('in'), 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user