File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -386,9 +386,10 @@ void FrameCryptorTransformer::encryptFrame(
386
386
if (date_in.size () == 0 || !enabled_cryption) {
387
387
RTC_LOG (LS_WARNING) << " FrameCryptorTransformer::encryptFrame() "
388
388
" date_in.size() == 0 || enabled_cryption == false" ;
389
- if (! key_provider_->options ().discard_frame_when_cryptor_not_ready ) {
390
- sink_callback-> OnTransformedFrame ( std::move (frame)) ;
389
+ if (key_provider_->options ().discard_frame_when_cryptor_not_ready ) {
390
+ return ;
391
391
}
392
+ sink_callback->OnTransformedFrame (std::move (frame));
392
393
return ;
393
394
}
394
395
@@ -496,9 +497,11 @@ void FrameCryptorTransformer::decryptFrame(
496
497
if (date_in.size () == 0 || !enabled_cryption) {
497
498
RTC_LOG (LS_WARNING) << " FrameCryptorTransformer::decryptFrame() "
498
499
" date_in.size() == 0 || enabled_cryption == false" ;
499
- if (! key_provider_->options ().discard_frame_when_cryptor_not_ready ) {
500
- sink_callback-> OnTransformedFrame ( std::move (frame)) ;
500
+ if (key_provider_->options ().discard_frame_when_cryptor_not_ready ) {
501
+ return ;
501
502
}
503
+
504
+ sink_callback->OnTransformedFrame (std::move (frame));
502
505
return ;
503
506
}
504
507
You can’t perform that action at this time.
0 commit comments