diff options
| author | tassaron | 2017-07-23 22:55:41 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-23 22:55:41 -0400 |
| commit | d92fc6373fd070f0ea303e9795eb7648d5cd9e90 (patch) | |
| tree | 325ddcd123aed64a6c3336ffb5e58c8ed80e6c51 /src/components/video.py | |
| parent | d38109453cea17a31c335837c0029ad51fa3dda1 (diff) | |
ComponentError exception wraps previewRender
probably where errors are likeliest to be found
Diffstat (limited to 'src/components/video.py')
| -rw-r--r-- | src/components/video.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/video.py b/src/components/video.py index d3696d4..383531e 100644 --- a/src/components/video.py +++ b/src/components/video.py @@ -7,7 +7,7 @@ import threading from queue import PriorityQueue from core import Core -from component import Component, BadComponentInit +from component import Component, ComponentError from toolkit.frame import BlankFrame from toolkit.ffmpeg import testAudioStream from toolkit import openPipe, checkOutput @@ -195,14 +195,14 @@ class Component(Component): self.updateChunksize(width, height) try: self.video = Video( - ffmpeg=self.core.FFMPEG_BIN, #videoPath=self.videoPath, + 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 BadComponentInit(self, 'Frame Fetcher initialization') + raise ComponentError(self, 'Frame Fetcher initialization') def frameRender(self, layerNo, frameNo): if self.video: |
