浏览代码

fixed type missmatch

pull/52/head
Tobias Perschon 6 年前
父节点
当前提交
524b783001
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      Adafruit_Video_Looper/hello_video.py
  2. +1
    -1
      Adafruit_Video_Looper/omxplayer.py

+ 1
- 1
Adafruit_Video_Looper/hello_video.py 查看文件

@@ -44,7 +44,7 @@ class HelloVideoPlayer:
self._process.poll() self._process.poll()
return self._process.returncode is None 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 """Stop the video player. block_timeout_sec is how many seconds to
block waiting for the player to stop before moving on. block waiting for the player to stop before moving on.
""" """


+ 1
- 1
Adafruit_Video_Looper/omxplayer.py 查看文件

@@ -51,7 +51,7 @@ class OMXPlayer:
self._process.poll() self._process.poll()
return self._process.returncode is None 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 """Stop the video player. block_timeout_sec is how many seconds to
block waiting for the player to stop before moving on. block waiting for the player to stop before moving on.
""" """


正在加载...
取消
保存