Commit 6d51a941 authored by xiongyu's avatar xiongyu
Browse files

debug video reader

parent 7bea02c0
...@@ -146,7 +146,7 @@ class VideoReader(object): ...@@ -146,7 +146,7 @@ class VideoReader(object):
self._set_real_position(self._position) self._set_real_position(self._position)
ret, img = self._vcap.read() ret, img = self._vcap.read()
if ret: if ret:
self._cache.put(pos, img) self._cache.put(self._position, img)
else: else:
ret, img = self._vcap.read() ret, img = self._vcap.read()
if ret: if ret:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment