@@ -128,7 +128,9 @@ srs_error_t SrsThreadPool::initialize()
128
128
}
129
129
130
130
interval_ = _srs_config->get_threads_interval ();
131
- srs_trace (" Thread #%d(%s): init interval=%dms" , entry_->num , entry_->label .c_str (), srsu2msi (interval_));
131
+ bool async_srtp = _srs_config->get_threads_async_srtp ();
132
+ srs_trace (" Thread #%d(%s): init interval=%dms, async_srtp=%d" ,
133
+ entry_->num , entry_->label .c_str (), srsu2msi (interval_), async_srtp);
132
134
133
135
return err;
134
136
}
@@ -481,3 +483,31 @@ srs_error_t SrsAsyncLogManager::do_start()
481
483
482
484
// TODO: FIXME: It should be thread-local or thread-safe.
483
485
SrsAsyncLogManager* _srs_async_log = new SrsAsyncLogManager();
486
+
487
+ SrsAsyncSRTP::SrsAsyncSRTP ()
488
+ {
489
+ }
490
+
491
+ SrsAsyncSRTP::~SrsAsyncSRTP ()
492
+ {
493
+ }
494
+
495
+ srs_error_t SrsAsyncSRTP::protect_rtp (void * packet, int * nb_cipher)
496
+ {
497
+ return SrsSRTP::protect_rtp (packet, nb_cipher);
498
+ }
499
+
500
+ srs_error_t SrsAsyncSRTP::protect_rtcp (void * packet, int * nb_cipher)
501
+ {
502
+ return SrsSRTP::protect_rtcp (packet, nb_cipher);
503
+ }
504
+
505
+ srs_error_t SrsAsyncSRTP::unprotect_rtp (void * packet, int * nb_plaintext)
506
+ {
507
+ return SrsSRTP::unprotect_rtp (packet, nb_plaintext);
508
+ }
509
+
510
+ srs_error_t SrsAsyncSRTP::unprotect_rtcp (void * packet, int * nb_plaintext)
511
+ {
512
+ return SrsSRTP::unprotect_rtcp (packet, nb_plaintext);
513
+ }
0 commit comments