aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authortassaron2017-07-24 21:22:04 -0400
committertassaron2017-07-24 21:22:04 -0400
commitd25dee6afc0cc72f477b577623079b4d644957a8 (patch)
treede847c19218bc94911359d45bca20ff64e242398 /src/components
parentd92fc6373fd070f0ea303e9795eb7648d5cd9e90 (diff)
preset manager uses mainwindow row for every button
and minor changes to componenterrors
Diffstat (limited to 'src/components')
-rw-r--r--src/components/video.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/components/video.py b/src/components/video.py
index 383531e..153fc4d 100644
--- a/src/components/video.py
+++ b/src/components/video.py
@@ -193,16 +193,13 @@ class Component(Component):
height = int(self.settings.value('outputHeight'))
self.blankFrame_ = BlankFrame(width, height)
self.updateChunksize(width, height)
- try:
- self.video = Video(
- ffmpeg=self.core.FFMPEG_BIN, videoPath=self.videoPath,
- width=width, height=height, chunkSize=self.chunkSize,
- frameRate=int(self.settings.value("outputFrameRate")),
- parent=self.parent, loopVideo=self.loopVideo,
- component=self, scale=self.scale
- ) if os.path.exists(self.videoPath) else None
- except KeyError:
- raise ComponentError(self, 'Frame Fetcher initialization')
+ self.video = Video(
+ ffmpeg=self.core.FFMPEG_BIN, videoPath=self.videoPath,
+ width=width, height=height, chunkSize=self.chunkSize,
+ frameRate=int(self.settings.value("outputFrameRate")),
+ parent=self.parent, loopVideo=self.loopVideo,
+ component=self, scale=self.scale
+ ) if os.path.exists(self.videoPath) else None
def frameRender(self, layerNo, frameNo):
if self.video: