You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It plays two fairly different roles in MovieWriter (it's the stdin of
the long-standing ffmpeg-like subprocess) and FileMovieWriter (it's the
ever-changing handle of the frame currently being saved), with different
life-cycles and no reuse between the subclasses, so it's easier to just
inline it at the call site (and skip a comment about how
FileMovieWriter._frame_sink gets closed in grab_frame, hinting at the
tight-coupling between the two of them).
Also, no need to close the process stdin after calling communicate() --
communicate() does it for us.
0 commit comments