mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-11 10:50:03 +01:00
ensuring camera is connected before trying to capture
This commit is contained in:
@@ -167,7 +167,9 @@ class Display(object):
|
||||
def _generate_capture_status(self):
|
||||
is_previewing = self.capture.is_previewing
|
||||
is_recording = self.capture.is_recording
|
||||
rec_time = self.capture.get_recording_time()
|
||||
rec_time = -1
|
||||
if is_recording == True:
|
||||
rec_time = self.capture.get_recording_time()
|
||||
capture_status = ''
|
||||
if is_previewing and is_recording == True:
|
||||
capture_status = '<{}>'.format('REC'+ self.format_time_value(rec_time))
|
||||
|
||||
Reference in New Issue
Block a user