Commit 1f5947fe authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

only return false on read requests to vlc if both eos is set and the buffer is...

only return false on read requests to vlc if both eos is set and the buffer is empty. patch by kevin_b
parent eda84977
......@@ -145,9 +145,9 @@ bool StreamReader::read(quint64 pos, int *length, char *buffer)
m_waitingForData.wait(&m_mutex);
if (oldSize == currentBufferSize()) {
if (m_eos) {
if (m_eos && m_buffer.isEmpty()) {
return false;
}
}
// We didn't get any more data
*length = static_cast<int>(oldSize);
// If we have some data to return, why tell to reader that we failed?
......
Supports Markdown
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