Skip to content

Commit c2f4aee

Browse files
committed
video: fix fps notation
1 parent be59090 commit c2f4aee

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

kivy/core/camera/camera_opencv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def init_camera(self):
6363
#get fps
6464
self.fps = cv.GetCaptureProperty(self._device, cv.CV_CAP_PROP_FPS)
6565
if self.fps <= 0:
66-
self.fps = 1/30
66+
self.fps = 1 / 30.
6767

6868
if not self.stopped:
6969
self.start()

kivy/core/camera/camera_videocapture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def init_camera(self):
3434
self._device.setResolution(self.resolution[0], self.resolution[1])
3535
except:
3636
raise Exception('VideoCapture: Resolution not supported')
37-
self.fps = 1 / 30
37+
self.fps = 1 / 30.
3838

3939
def _update(self, dt):
4040
data, camera_width, camera_height = self._device.getBuffer()

kivy/uix/video.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def __init__(self, **kwargs):
9595
super(Video, self).__init__(**kwargs)
9696

9797
def texture_update(self, *largs):
98+
'''This method is a no-op in Video widget.
99+
'''
98100
pass
99101

100102
def on_source(self, instance, value):

0 commit comments

Comments
 (0)