aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron2017-06-03 08:46:18 -0400
committertassaron2017-06-03 08:46:18 -0400
commitfccdee45b291bbb4570650b6c1ff00dd21dbb43f (patch)
treef24819bad071cfee8a705946a1fdbc9c8e52e51a
parent4b566601772a00e354e0f144bb3dc76ed043be4f (diff)
absolute path to main ui, bg video fixed
-rw-r--r--main.py2
-rw-r--r--video_thread.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/main.py b/main.py
index e104b2b..9fac283 100644
--- a/main.py
+++ b/main.py
@@ -580,7 +580,7 @@ if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
app.setApplicationName("audio-visualizer")
app.setOrganizationName("audio-visualizer")
- window = uic.loadUi("mainwindow.ui")
+ window = uic.loadUi(os.path.join(os.path.dirname(os.path.realpath(__file__)), "mainwindow.ui"))
# window.adjustSize()
desc = QtGui.QDesktopWidget()
dpi = desc.physicalDpiX()
diff --git a/video_thread.py b/video_thread.py
index 4032c27..0d42406 100644
--- a/video_thread.py
+++ b/video_thread.py
@@ -56,13 +56,13 @@ class Worker(QtCore.QObject):
def renderDispatch(self):
print('Dispatching Frames for Compositing...')
- if not self.imBackground:
- # increment background video frame for next iteration
- if self.bgI < len(self.backgroundFrames)-1 and i != 0:
- self.bgI += 1
for i in range(0, len(self.completeAudioArray), self.sampleSize):
self.compositeQueue.put([i, self.bgI])
+ if not self.imBackground:
+ # increment background video frame for next iteration
+ if self.bgI < len(self.backgroundFrames)-1:
+ self.bgI += 1
def previewDispatch(self):
while not self.stopped: