From 524b7830013553159e66771c542c882d9f982806 Mon Sep 17 00:00:00 2001 From: Tobias Perschon Date: Fri, 22 Mar 2019 22:51:22 +0100 Subject: [PATCH] fixed type missmatch --- Adafruit_Video_Looper/hello_video.py | 2 +- Adafruit_Video_Looper/omxplayer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_Video_Looper/hello_video.py b/Adafruit_Video_Looper/hello_video.py index 6e971f0..d2bc181 100644 --- a/Adafruit_Video_Looper/hello_video.py +++ b/Adafruit_Video_Looper/hello_video.py @@ -44,7 +44,7 @@ class HelloVideoPlayer: self._process.poll() return self._process.returncode is None - def stop(self, block_timeout_sec=None): + def stop(self, block_timeout_sec=0): """Stop the video player. block_timeout_sec is how many seconds to block waiting for the player to stop before moving on. """ diff --git a/Adafruit_Video_Looper/omxplayer.py b/Adafruit_Video_Looper/omxplayer.py index 99f0496..0a11ec8 100644 --- a/Adafruit_Video_Looper/omxplayer.py +++ b/Adafruit_Video_Looper/omxplayer.py @@ -51,7 +51,7 @@ class OMXPlayer: self._process.poll() return self._process.returncode is None - def stop(self, block_timeout_sec=None): + def stop(self, block_timeout_sec=0): """Stop the video player. block_timeout_sec is how many seconds to block waiting for the player to stop before moving on. """