Fixed general output shutdown behaviour and logging on end of stream, MP4 output now correctly ends HTTP response on stream end.
Bugfix in HTTP::Parser when calling Chunkify before initializing
This commit is contained in:
parent
9c71b25c06
commit
dc0cd0d451
4 changed files with 13 additions and 7 deletions
|
@ -942,6 +942,12 @@ namespace Mist{
|
|||
H.Chunkify(mdatHeader, 8, myConn);
|
||||
}
|
||||
|
||||
bool OutMP4::onFinish(){
|
||||
H.Chunkify(0, 0, myConn);
|
||||
wantRequest = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
void OutMP4::onHTTP(){
|
||||
std::string dl;
|
||||
if (H.GetVar("dl").size()){
|
||||
|
@ -1226,11 +1232,6 @@ namespace Mist{
|
|||
}
|
||||
}
|
||||
|
||||
if (leftOver < 1){
|
||||
// stop playback, wait for new request
|
||||
stop();
|
||||
wantRequest = true;
|
||||
}
|
||||
}
|
||||
|
||||
void OutMP4::sendHeader(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue