decoder should terminate to, when file is moved

This commit is contained in:
Jonathan Baecker 2020-10-15 10:50:48 +02:00
parent d15793f14e
commit 154f528062

View File

@ -116,6 +116,9 @@ class MediaWatcher:
messenger.info('Move file from "{}" to "{}"'.format(event.src_path,
event.dest_path))
if _current.clip == event.src_path:
_ff.decoder.terminate()
def on_deleted(self, event):
self._media.remove(event.src_path)