File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -385,10 +385,11 @@ void FrameCryptorTransformer::encryptFrame(
385
385
rtc::ArrayView<const uint8_t > date_in = frame->GetData ();
386
386
if (date_in.size () == 0 || !enabled_cryption) {
387
387
RTC_LOG (LS_WARNING) << " FrameCryptorTransformer::encryptFrame() "
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)) ;
388
+ " enabled_cryption == false" ;
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
@@ -495,10 +496,12 @@ void FrameCryptorTransformer::decryptFrame(
495
496
496
497
if (date_in.size () == 0 || !enabled_cryption) {
497
498
RTC_LOG (LS_WARNING) << " FrameCryptorTransformer::decryptFrame() "
498
- " 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)) ;
499
+ " enabled_cryption == false" ;
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