aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/video.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/video.py b/src/components/video.py
index 9fffc26..60ca800 100644
--- a/src/components/video.py
+++ b/src/components/video.py
@@ -63,16 +63,16 @@ class Component(Component):
def properties(self):
props = []
+ outputFile = None
if hasattr(self.parent, 'lineEdit_outputFile'):
+ # check only happens in GUI mode
outputFile = self.parent.lineEdit_outputFile.text()
- else:
- outputFile = str(self.parent.args.output)
if not self.videoPath:
self.lockError("There is no video selected.")
elif not os.path.exists(self.videoPath):
self.lockError("The video selected does not exist!")
- elif os.path.realpath(self.videoPath) == os.path.realpath(outputFile):
+ elif outputFile and os.path.realpath(self.videoPath) == os.path.realpath(outputFile):
self.lockError("Input and output paths match.")
if self.useAudio: