Fix SRT input shutdown issues
This commit is contained in:
parent
46bb6a0fa5
commit
456fd2d555
2 changed files with 1 additions and 4 deletions
|
@ -591,7 +591,6 @@ void Util::Config::signal_handler(int signum, siginfo_t *sigInfo, void *ignore){
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
if (!mutabort || mutabort->try_lock()){
|
if (!mutabort || mutabort->try_lock()){
|
||||||
if (serv_sock_pointer){serv_sock_pointer->close();}
|
if (serv_sock_pointer){serv_sock_pointer->close();}
|
||||||
if (stdin){fclose(stdin);}
|
|
||||||
if (mutabort){mutabort->unlock();}
|
if (mutabort){mutabort->unlock();}
|
||||||
}
|
}
|
||||||
#if DEBUG >= DLVL_DEVEL
|
#if DEBUG >= DLVL_DEVEL
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <fstream>
|
|
||||||
#include <iomanip>
|
|
||||||
#include <iostream>
|
|
||||||
#include <mist/defines.h>
|
#include <mist/defines.h>
|
||||||
#include <mist/downloader.h>
|
#include <mist/downloader.h>
|
||||||
#include <mist/flv_tag.h>
|
#include <mist/flv_tag.h>
|
||||||
|
@ -308,6 +305,7 @@ namespace Mist{
|
||||||
// If we are here: we have a proper connection (either accepted or pull input) and should start parsing it as such
|
// If we are here: we have a proper connection (either accepted or pull input) and should start parsing it as such
|
||||||
Input::streamMainLoop();
|
Input::streamMainLoop();
|
||||||
srtConn.close();
|
srtConn.close();
|
||||||
|
Socket::SRT::libraryCleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InputTSSRT::needsLock(){return false;}
|
bool InputTSSRT::needsLock(){return false;}
|
||||||
|
|
Loading…
Add table
Reference in a new issue