Fix MP4 input getting stuck when reading a 0 byte input
This commit is contained in:
parent
f01b90f90e
commit
95c25fe966
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ namespace HTTP{
|
|||
if (allData.size() && bufPos < allData.size()){return false;}
|
||||
return true;
|
||||
}
|
||||
if ((totalSize > 0 && curPos >= totalSize) || downer.completed() || (!totalSize && !downer.getSocket())){
|
||||
if ((totalSize != std::string::npos && curPos >= totalSize) || downer.completed() || (totalSize == std::string::npos && !downer.getSocket())){
|
||||
if (allData.size() && bufPos < allData.size()){return false;}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue