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

Commit 70c75d8c authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "RTSP: append track URL to base URL" into mnc-dev

parents 3f4431e9 5efccd8d
Loading
Loading
Loading
Loading
+3 −13
Original line number Original line Diff line number Diff line
@@ -1673,21 +1673,11 @@ private:
        }
        }


        size_t n = strlen(baseURL);
        size_t n = strlen(baseURL);
        if (baseURL[n - 1] == '/') {
        out->setTo(baseURL);
        out->setTo(baseURL);
            out->append(url);
        if (baseURL[n - 1] != '/') {
        } else {
            const char *slashPos = strrchr(baseURL, '/');

            if (slashPos > &baseURL[6]) {
                out->setTo(baseURL, slashPos - baseURL);
            } else {
                out->setTo(baseURL);
            }

            out->append("/");
            out->append("/");
            out->append(url);
        }
        }
        out->append(url);


        return true;
        return true;
    }
    }