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

Refine source, pass-by RTC publisher for player

This commit is contained in:
winlin 2020-05-03 07:51:01 +08:00
parent 20b4984af4
commit 1688d53f7d
3 changed files with 12 additions and 13 deletions

View file

@ -1921,7 +1921,7 @@ SrsSource::SrsSource()
atc = false;
#ifdef SRS_RTC
rtc_publisher = NULL;
rtc_publisher_ = NULL;
#endif
}
@ -2706,16 +2706,14 @@ SrsMetaCache* SrsSource::cached_meta()
return meta;
}
void SrsSource::request_keyframe()
SrsRtcPublisher* SrsSource::rtc_publisher()
{
if (rtc_publisher) {
rtc_publisher->request_keyframe();
}
return rtc_publisher_;
}
void SrsSource::set_rtc_publisher(SrsRtcPublisher* v)
{
rtc_publisher = v;
rtc_publisher_ = v;
}
srs_error_t SrsSource::on_rtc_audio(SrsSharedPtrMessage* audio)