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
We are using VideoIO on a resource-constrained system and sometimes need to abort writing out a video. Running close_video_out! takes a long time in this case, presumably because it's writing out a bunch of frames to disk. Is it okay to skip this call and let the VideoWriter get garbage collected? Will all native resources still be freed? I ask because I noticed the implementation does some cleanup on the writer:
I think the finalizers will still run if the writer itself gets GC’d before it’s closed, but it might be worth testing. The code there is just cleaning up the resources allocated by the writer by removing the writer’s references to them.
We are using VideoIO on a resource-constrained system and sometimes need to abort writing out a video. Running
close_video_out!
takes a long time in this case, presumably because it's writing out a bunch of frames to disk. Is it okay to skip this call and let theVideoWriter
get garbage collected? Will all native resources still be freed? I ask because I noticed the implementation does some cleanup on the writer:VideoIO.jl/src/encoding.jl
Lines 114 to 119 in a445dfc
The text was updated successfully, but these errors were encountered: