MCPcopy Create free account
hub / github.com/FFMS/ffms2 / FileHandle

Method FileHandle

src/core/filehandle.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45FileHandle::FileHandle(const char *filename, const char *mode, int error_source, int error_cause)
46 : avio(ffms_fopen(filename, mode))
47 , filename(filename)
48 , error_source(error_source)
49 , error_cause(error_cause) {
50 if (!avio)
51 throw FFMS_Exception(error_source, FFMS_ERROR_NO_FILE,
52 "Failed to open '" + this->filename + "'");
53}
54
55FileHandle::~FileHandle() {
56 avio_close(avio);

Callers

nothing calls this directly

Calls 2

ffms_fopenFunction · 0.85
FFMS_ExceptionClass · 0.85

Tested by

no test coverage detected