Skip to content

Commit

Permalink
Merge pull request #6971 from misl6/fix/fix-camera-docs
Browse files Browse the repository at this point in the history
Fix an inconsistency between docs and code on Camera
  • Loading branch information
matham committed Jun 28, 2020
2 parents 060882c + cdcaa7b commit 8d0a193
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kivy/uix/camera.py
Expand Up @@ -98,8 +98,9 @@ def _on_index(self, *largs):
if self.index < 0:
return
if self.resolution[0] < 0 or self.resolution[1] < 0:
return
self._camera = CoreCamera(index=self.index,
self._camera = CoreCamera(index=self.index, stopped=True)
else:
self._camera = CoreCamera(index=self.index,
resolution=self.resolution, stopped=True)
self._camera.bind(on_load=self._camera_loaded)
if self.play:
Expand Down

0 comments on commit 8d0a193

Please sign in to comment.