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

Commit 7fd048b3 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] M3UParser: handle missing EXT-X-MEDIA URIs am: b8c3a74d am:...

[automerger] M3UParser: handle missing EXT-X-MEDIA URIs am: b8c3a74d am: a3acb4c0 am: b7b790ef am: 17ae2087 am: c60f2ff6

Change-Id: I4f5b1eec29da19eb35d8bda966bda6352950a2d8
parents 48dcdf9a c60f2ff6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -233,7 +233,11 @@ bool M3UParser::MediaGroup::getActiveURI(AString *uri, const char *baseURL) cons
        if (mSelectedIndex >= 0 && i == (size_t)mSelectedIndex) {
            const Media &item = mMediaItems.itemAt(i);

            if (item.mURI.empty()) {
                *uri = "";
            } else {
                *uri = item.makeURL(baseURL);
            }
            return true;
        }
    }
@@ -464,7 +468,7 @@ bool M3UParser::getTypeURI(size_t index, const char *key, AString *uri) const {
        }

        if ((*uri).empty()) {
            *uri = mItems.itemAt(index).mURI;
            *uri = mItems.itemAt(index).makeURL(mBaseURI.c_str());
        }
    }