mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
2ed2513f08
commit
ea9a5f26d9
18 changed files with 174 additions and 274 deletions
|
@ -71,12 +71,12 @@ public:
|
|||
* encode with FFMPEG(optional),
|
||||
* push to SRS(or any RTMP server) over RTMP.
|
||||
*/
|
||||
class SrsIngester : public ISrsReusableThreadHandler, public ISrsReloadHandler
|
||||
class SrsIngester : public ISrsCoroutineHandler, public ISrsReloadHandler
|
||||
{
|
||||
private:
|
||||
std::vector<SrsIngesterFFMPEG*> ingesters;
|
||||
private:
|
||||
SrsReusableThread* pthread;
|
||||
SrsCoroutine* trd;
|
||||
SrsPithyPrint* pprint;
|
||||
// whether the ingesters are expired,
|
||||
// for example, the listen port changed,
|
||||
|
@ -95,6 +95,8 @@ private:
|
|||
// interface ISrsReusableThreadHandler.
|
||||
public:
|
||||
virtual int cycle();
|
||||
private:
|
||||
virtual int do_cycle();
|
||||
private:
|
||||
virtual void clear_engines();
|
||||
virtual int parse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue