mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Extract RTC Source and Consumer
This commit is contained in:
parent
d0d8f676c3
commit
25496b734b
10 changed files with 797 additions and 41 deletions
|
@ -427,6 +427,14 @@ ISrsWakable::~ISrsWakable()
|
|||
{
|
||||
}
|
||||
|
||||
ISrsConsumerQueue::ISrsConsumerQueue()
|
||||
{
|
||||
}
|
||||
|
||||
ISrsConsumerQueue::~ISrsConsumerQueue()
|
||||
{
|
||||
}
|
||||
|
||||
SrsConsumer::SrsConsumer(SrsSource* s, SrsConnection* c)
|
||||
{
|
||||
source = s;
|
||||
|
@ -907,7 +915,7 @@ srs_error_t SrsOriginHub::initialize(SrsSource* s, SrsRequest* r)
|
|||
}
|
||||
|
||||
#ifdef SRS_RTC
|
||||
if ((err = rtc->initialize(this, req)) != srs_success) {
|
||||
if ((err = rtc->initialize(req)) != srs_success) {
|
||||
return srs_error_wrap(err, "rtc initialize");
|
||||
}
|
||||
#endif
|
||||
|
@ -1629,7 +1637,7 @@ SrsFormat* SrsMetaCache::ash_format()
|
|||
return aformat;
|
||||
}
|
||||
|
||||
srs_error_t SrsMetaCache::dumps(SrsConsumer* consumer, bool atc, SrsRtmpJitterAlgorithm ag, bool dm, bool ds)
|
||||
srs_error_t SrsMetaCache::dumps(ISrsConsumerQueue* consumer, bool atc, SrsRtmpJitterAlgorithm ag, bool dm, bool ds)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue