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

Commit 8e705142 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Add nullptr checks"

parents dcbff62a bcfe9749
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -67,8 +67,12 @@ struct DataSourceBaseReader : public mkvparser::IMkvReader {
    virtual int Length(long long* total, long long* available) {
        off64_t size;
        if (mSource->getSize(&size) != OK) {
            if (total) {
                *total = -1;
            }
            if (available) {
                *available = (long long)((1ull << 63) - 1);
            }

            return 0;
        }