Commit c2b2d64e authored by Kieran Hymas's avatar Kieran Hymas

BUG FIX: user is not allowed to open multiple video streams

parent 41a2c279
......@@ -149,6 +149,10 @@ class Application:
return arr
def launchVideo(self, video_source):
#Catch multiple instances of video source; this may be a feature in future versions but not now
if self.videostreamplaying:
print("[-] Error: videostream already open; close existing stream first")
self.vid = VideoStream(video_source)
self.videostreamplaying = True
self.newwin = Toplevel(self.window)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment