Commit 5479dd0f authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: invalidate connection on redirect

parent f9ab8146
......@@ -223,7 +223,11 @@ bool HTTPChunkSource::prepare(int i_redir)
if(i_ret != VLC_SUCCESS)
{
if(i_ret == VLC_ETIMEOUT && i_redir < 3)
{
connection->setUsed(false);
connection = NULL;
return HTTPChunkSource::prepare(i_redir + 1);
}
return false;
}
/* Because we don't know Chunk size at start, we need to get size
......
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