mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-19 08:17:49 +08:00
parent
f3026f5df0
commit
83a622fa25
@ -37,7 +37,13 @@ PlayerBase::Ptr PlayerBase::createPlayer(const EventPoller::Ptr &in_poller, cons
|
|||||||
delete ptr;
|
delete ptr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
string url = url_in;
|
string url = url_in;
|
||||||
|
trim(url);
|
||||||
|
if (url.empty()) {
|
||||||
|
throw std::invalid_argument("invalid play url: " + url_in);
|
||||||
|
}
|
||||||
|
|
||||||
string prefix = findSubString(url.data(), NULL, "://");
|
string prefix = findSubString(url.data(), NULL, "://");
|
||||||
auto pos = url.find('?');
|
auto pos = url.find('?');
|
||||||
if (pos != string::npos) {
|
if (pos != string::npos) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user