mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SmartPtr: Support shared ptr for RTC source. v6.0.128 (#4085)
--------- Co-authored-by: Haibo Chen <495810242@qq.com>
This commit is contained in:
parent
242152bd6b
commit
9dba99a1cc
17 changed files with 120 additions and 99 deletions
|
@ -968,9 +968,8 @@ VOID TEST(KernelRTCTest, SyncTimestampBySenderReportNormal)
|
|||
|
||||
publish.set_all_tracks_status(true);
|
||||
|
||||
SrsRtcSource* rtc_source = new SrsRtcSource();
|
||||
SrsAutoFree(SrsRtcSource, rtc_source);
|
||||
|
||||
SrsSharedPtr<SrsRtcSource> rtc_source(new SrsRtcSource());
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
if (true)
|
||||
|
@ -1036,8 +1035,7 @@ VOID TEST(KernelRTCTest, SyncTimestampBySenderReportOutOfOrder)
|
|||
|
||||
publish.set_all_tracks_status(true);
|
||||
|
||||
SrsRtcSource* rtc_source = new SrsRtcSource();
|
||||
SrsAutoFree(SrsRtcSource, rtc_source);
|
||||
SrsSharedPtr<SrsRtcSource> rtc_source(new SrsRtcSource());
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
|
@ -1109,8 +1107,7 @@ VOID TEST(KernelRTCTest, SyncTimestampBySenderReportConsecutive)
|
|||
|
||||
publish.set_all_tracks_status(true);
|
||||
|
||||
SrsRtcSource* rtc_source = new SrsRtcSource();
|
||||
SrsAutoFree(SrsRtcSource, rtc_source);
|
||||
SrsSharedPtr<SrsRtcSource> rtc_source(new SrsRtcSource());
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
|
@ -1215,8 +1212,7 @@ VOID TEST(KernelRTCTest, SyncTimestampBySenderReportDuplicated)
|
|||
|
||||
publish.set_all_tracks_status(true);
|
||||
|
||||
SrsRtcSource* rtc_source = new SrsRtcSource();
|
||||
SrsAutoFree(SrsRtcSource, rtc_source);
|
||||
SrsSharedPtr<SrsRtcSource> rtc_source(new SrsRtcSource());
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue