conn_http_progressive: correctly set streamname
This commit is contained in:
parent
11b85b36b1
commit
a9db94a598
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ namespace Connector_HTTP{
|
||||||
#endif
|
#endif
|
||||||
conn.setHost(HTTP_R.GetHeader("X-Origin"));
|
conn.setHost(HTTP_R.GetHeader("X-Origin"));
|
||||||
//we assume the URL is the stream name with a 3 letter extension
|
//we assume the URL is the stream name with a 3 letter extension
|
||||||
std::string streamname(HTTP_R.url);
|
streamname = HTTP_R.url;
|
||||||
size_t extDot = streamname.rfind('.');
|
size_t extDot = streamname.rfind('.');
|
||||||
if (extDot != std::string::npos){streamname.resize(extDot);};//strip the extension
|
if (extDot != std::string::npos){streamname.resize(extDot);};//strip the extension
|
||||||
seek_pos = 1000 * atof(HTTP_R.GetVar("start").c_str());//seconds to ms
|
seek_pos = 1000 * atof(HTTP_R.GetVar("start").c_str());//seconds to ms
|
||||||
|
|
Loading…
Add table
Reference in a new issue