Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions imutils/video/filevideostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def update(self):
# if the thread indicator variable is set, stop the
# thread
if self.stopped:
self.stopped = True
break

# otherwise, ensure the queue has room in it
if not self.Q.full():
Expand All @@ -49,8 +49,8 @@ def update(self):
# if the `grabbed` boolean is `False`, then we have
# reached the end of the video file
if not grabbed:
break

self.stopped = True
# if there are transforms to be done, might as well
# do them on producer thread before handing back to
# consumer thread. ie. Usually the producer is so far
Expand Down