MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Close

Method Close

src/Clip.cpp:399–411  ·  view source on GitHub ↗

Close the internal reader

Source from the content-addressed store, hash-verified

397
398// Close the internal reader
399void Clip::Close()
400{
401 if (is_open && reader) {
402 ZmqLogger::Instance()->AppendDebugMethod("Clip::Close");
403
404 // Close the reader
405 reader->Close();
406 }
407
408 // Clear cache
409 final_cache.Clear();
410 is_open = false;
411}
412
413// Get end position of clip (trim end of video), which can be affected by the time curve.
414float Clip::End() const

Callers 3

MaskReaderMethod · 0.45
ReaderMethod · 0.45
ExtractSamplesMethod · 0.45

Calls 2

AppendDebugMethodMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected