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

@ -754,7 +754,10 @@ srs_error_t SrsRtcSenderThread::cycle()
// For RTC, notify the source to fetch keyframe for this client.
// TODO: FIXME: Should triggle by PLI from client.
source->request_keyframe();
SrsRtcPublisher* publisher = source->rtc_publisher();
if (publisher) {
publisher->request_keyframe();
}
SrsMessageArray msgs(SRS_PERF_MW_MSGS);
SrsRtcPackets pkts(SRS_PERF_RTC_RTP_PACKETS);