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

demux: adaptive: rename query to request

parent 2b80ce5c
......@@ -208,7 +208,7 @@ bool HTTPChunkSource::prepare()
return false;
}
if( connection->query(params.getPath(), bytesRange) != VLC_SUCCESS )
if( connection->request(params.getPath(), bytesRange) != VLC_SUCCESS )
return false;
/* Because we don't know Chunk size at start, we need to get size
from content length */
......
......@@ -99,7 +99,7 @@ void HTTPConnection::disconnect()
socket->disconnect();
}
int HTTPConnection::query(const std::string &path, const BytesRange &range)
int HTTPConnection::request(const std::string &path, const BytesRange &range)
{
queryOk = false;
......@@ -128,7 +128,7 @@ int HTTPConnection::query(const std::string &path, const BytesRange &range)
{
/* server closed connection pipeline after last req. need new */
connectionClose = true;
return query(path, range);
return request(path, range);
}
return VLC_EGENERIC;
}
......@@ -144,7 +144,7 @@ int HTTPConnection::query(const std::string &path, const BytesRange &range)
if(!connectionClose)
{
connectionClose = true;
return query(path, range);
return request(path, range);
}
}
......
......@@ -49,7 +49,7 @@ namespace adaptive
virtual bool prepare (const ConnectionParams &);
virtual bool canReuse (const ConnectionParams &) const = 0;
virtual int query (const std::string& path, const BytesRange & = BytesRange()) = 0;
virtual int request (const std::string& path, const BytesRange & = BytesRange()) = 0;
virtual ssize_t read (void *p_buffer, size_t len) = 0;
virtual size_t getContentLength() const;
......@@ -71,7 +71,7 @@ namespace adaptive
virtual ~HTTPConnection();
virtual bool canReuse (const ConnectionParams &) const;
virtual int query (const std::string& path, const BytesRange & = BytesRange());
virtual int request (const std::string& path, const BytesRange & = BytesRange());
virtual ssize_t read (void *p_buffer, size_t len);
void setUsed( bool );
......
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