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