From a9db94a598dd470b3c2fc167571fc036ff674be8 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 31 Aug 2012 13:02:40 +0200 Subject: [PATCH] conn_http_progressive: correctly set streamname --- src/conn_http_progressive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conn_http_progressive.cpp b/src/conn_http_progressive.cpp index 430d2d84..e7b4cfbf 100644 --- a/src/conn_http_progressive.cpp +++ b/src/conn_http_progressive.cpp @@ -47,7 +47,7 @@ namespace Connector_HTTP{ #endif conn.setHost(HTTP_R.GetHeader("X-Origin")); //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('.'); if (extDot != std::string::npos){streamname.resize(extDot);};//strip the extension seek_pos = 1000 * atof(HTTP_R.GetVar("start").c_str());//seconds to ms