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:
parent
017b96f9b5
commit
e5646e3bb5
2 changed files with 44 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue