Commit 95487410 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: remove redir count parameter

parent 6c36897f
......@@ -204,7 +204,7 @@ block_t * HTTPChunkSource::read(size_t readsize)
return p_block;
}
bool HTTPChunkSource::prepare(int i_redir)
bool HTTPChunkSource::prepare()
{
if(prepared)
return true;
......@@ -214,7 +214,8 @@ bool HTTPChunkSource::prepare(int i_redir)
ConnectionParams connparams = params; /* can be changed on 301 */
while(i_redir++ < 3)
int i_redirects = 0;
while(i_redirects++ < HTTPConnection::MAX_REDIRECTS)
{
if(!connection)
{
......
......@@ -94,7 +94,7 @@ namespace adaptive
static const size_t CHUNK_SIZE = 32768;
protected:
virtual bool prepare(int = 0);
virtual bool prepare();
AbstractConnection *connection;
AbstractConnectionManager *connManager;
size_t consumed; /* read pointer */
......
......@@ -74,6 +74,7 @@ namespace adaptive
void setUsed( bool );
const ConnectionParams &getRedirection() const;
static const unsigned MAX_REDIRECTS = 3;
protected:
virtual bool connected () const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment