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

Commit 642f662a authored by Robert Shih's avatar Robert Shih Committed by Android (Google) Code Review
Browse files

Merge "Handle Http Live Streaming native exception"

parents 83dc265b 1aa5592b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -706,6 +706,12 @@ status_t M3UParser::parse(const void *_data, size_t size) {
        ++lineNo;
    }

    // playlist has no item, would cause exception
    if (mItems.size() == 0) {
        ALOGE("playlist has no item");
        return ERROR_MALFORMED;
    }

    // error checking of all fields that's required to appear once
    // (currently only checking "target-duration"), and
    // initialization of playlist properties (eg. mTargetDurationUs)