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

for bug #251, support mic(message iovs cache). 2.0.61

This commit is contained in:
winlin 2014-12-06 20:10:05 +08:00
parent 32d537b96b
commit d53fd7f570
8 changed files with 457 additions and 2 deletions

View file

@ -352,6 +352,11 @@ private:
std::vector<SrsForwarder*> forwarders;
// for aggregate message
SrsStream* aggregate_stream;
#ifdef SRS_PERF_MW_MSG_IOVS_CACHE
// the chunk size for mic,
// update when publish stream.
int chunk_size;
#endif
private:
/**
* the sample rate of audio in metadata.
@ -396,6 +401,7 @@ public:
virtual int on_reload_vhost_forward(std::string vhost);
virtual int on_reload_vhost_hls(std::string vhost);
virtual int on_reload_vhost_dvr(std::string vhost);
virtual int on_reload_vhost_chunk_size(std::string vhost);
virtual int on_reload_vhost_transcode(std::string vhost);
// for the tools callback
public: