diff options
| author | tassaron | 2017-07-15 13:13:53 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-15 13:13:53 -0400 |
| commit | bcb8f27c2e4434d2296dcd66bf279b76ee0d0a4f (patch) | |
| tree | 2a7f9df3eebbae8da4317516f84dfe7490b5d36a /src/components/sound.py | |
| parent | 62ab09e3f36dcaf6c1a4680dc6c4d048fb2e165c (diff) | |
use -t on inputs so ffmpeg knows when to stop filters
+ better feedback in cmd mode
Diffstat (limited to 'src/components/sound.py')
| -rw-r--r-- | src/components/sound.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/sound.py b/src/components/sound.py index fedc32b..4a5714b 100644 --- a/src/components/sound.py +++ b/src/components/sound.py @@ -79,6 +79,11 @@ class Component(Component): if not arg.startswith('preset=') and '=' in arg: key, arg = arg.split('=', 1) if key == 'path': + if '*%s' % os.path.splitext(arg)[1] \ + not in self.core.audioFormats: + print("Not a supported audio format") + quit(1) self.page.lineEdit_sound.setText(arg) return + super().command(arg) |
