@@ -450,7 +450,7 @@ namespace webrtc
450
450
mrcVideoEffectDefinition.StreamType (MediaStreamType::VideoRecord);
451
451
auto addEffectTask = Concurrency::create_task ([this , &mrcVideoEffectDefinition]() {
452
452
return media_capture_.get ().AddVideoEffectAsync (mrcVideoEffectDefinition, MediaStreamType::VideoRecord).get ();
453
- }).then ([this ](IMediaExtension const & videoExtension)
453
+ }).then ([this ](IMediaExtension const & /* videoExtension */ )
454
454
{
455
455
OutputDebugString (L" VideoEffect Added\n " );
456
456
video_effect_added_ = true ;
@@ -1097,14 +1097,20 @@ namespace webrtc
1097
1097
!apply_rotation ? rotateFrame_ : kVideoRotation_0 );
1098
1098
captureFrame.set_ntp_time_ms (captureTime);
1099
1099
1100
+ forwardToDelegates (spMediaSample);
1100
1101
OnFrame (captureFrame, captureFrame.width (), captureFrame.height ());
1101
1102
1103
+ }
1104
+
1105
+ // -----------------------------------------------------------------------------
1106
+ void VideoCapturer::forwardToDelegates (const winrt::com_ptr<IMFSample> &spMediaSample)
1107
+ {
1102
1108
if (subscriptions_.size () < 1 )
1103
1109
return ;
1104
1110
1105
1111
winrt::com_ptr<IMFMediaBuffer> spSampleBuffer;
1106
- DWORD cbCurrentLength {};
1107
- DWORD cbMaxLength {};
1112
+ DWORD cbCurrentLength{};
1113
+ DWORD cbMaxLength{};
1108
1114
1109
1115
winrt::com_ptr<IMFSample> spSampleCopy;
1110
1116
winrt::com_ptr<IMFMediaBuffer> spSampleBufferCopy;
@@ -1144,7 +1150,7 @@ namespace webrtc
1144
1150
return ;
1145
1151
}
1146
1152
1147
- wrapper::org::webRtc::MediaSamplePtr sample =
1153
+ wrapper::org::webRtc::MediaSamplePtr sample =
1148
1154
wrapper::impl::org::webRtc::MediaSample::toWrapper (spSampleCopy);
1149
1155
1150
1156
subscriptions_.delegate ()->onVideoFrameReceived (VideoCapturerPtr (), sample);
0 commit comments