1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine ingester, add vhost/id info to ingester

This commit is contained in:
winlin 2014-04-10 09:20:23 +08:00
parent 017b96f9b5
commit e5646e3bb5
2 changed files with 44 additions and 15 deletions

View file

@ -39,6 +39,19 @@ class SrsFFMPEG;
class SrsConfDirective;
class SrsPithyPrint;
/**
* ingester ffmpeg object.
*/
struct SrsIngesterFFMPEG
{
std::string vhost;
std::string id;
SrsFFMPEG* ffmpeg;
SrsIngesterFFMPEG(SrsFFMPEG* _ffmpeg, std::string _vhost, std::string _id);
virtual ~SrsIngesterFFMPEG();
};
/**
* ingest file/stream/device,
* encode with FFMPEG(optional),
@ -48,7 +61,7 @@ class SrsIngester : public ISrsThreadHandler
{
private:
std::string input_stream_name;
std::vector<SrsFFMPEG*> ffmpegs;
std::vector<SrsIngesterFFMPEG*> ingesters;
private:
SrsThread* pthread;
SrsPithyPrint* pithy_print;