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

RTC: We should cache the sps/pps in source.

This commit is contained in:
winlin 2020-05-13 16:21:42 +08:00
parent 68de796f77
commit b8b52f28f5
3 changed files with 91 additions and 30 deletions

View file

@ -1423,8 +1423,7 @@ srs_error_t SrsRtcPlayer::package_stap_a(SrsRtcSource* source, SrsSharedPtrMessa
{
srs_error_t err = srs_success;
SrsRtcFromRtmpBridger* bridger = dynamic_cast<SrsRtcFromRtmpBridger*>(source->bridger());
SrsMetaCache* meta = bridger->cached_meta();
SrsMetaCache* meta = source->cached_meta();
if (!meta) {
return err;
}