Various TS improvements

This commit is contained in:
Thulinma 2020-06-25 00:18:23 +02:00
parent 3d26741148
commit 1fff195f77
7 changed files with 110 additions and 84 deletions

View file

@ -124,7 +124,7 @@ namespace Mist{
std::set<size_t> getSupportedTracks(const std::string &type = "") const;
inline bool keepGoing(){return config->is_active && myConn;}
inline virtual bool keepGoing(){return config->is_active && myConn;}
Comms::Statistics statComm;
bool isBlocking; ///< If true, indicates that myConn is blocking.

View file

@ -20,6 +20,11 @@ namespace Mist{
Socket::UDPConnection pushSock;
TS::Stream tsIn;
std::string getStatsName();
protected:
inline virtual bool keepGoing(){
return config->is_active && (!listenMode() || myConn);
}
};
}// namespace Mist