Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16ffd2e3 authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "FileSource: FILE is not closed"

parents f4283b68 e0d44a50
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -132,6 +132,10 @@ struct FileSource : public FragmentedMP4Parser::Source {
            CHECK(mFile != NULL);
        }

    virtual ~FileSource() {
        fclose(mFile);
    }

    virtual ssize_t readAt(off64_t offset, void *data, size_t size) {
        fseek(mFile, offset, SEEK_SET);
        return fread(data, 1, size, mFile);