8000 fix: Fix crash for Android, close #757 and #734. · samhblee/flutter-webrtc@214bd45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 214bd45

Browse files
committed
fix: Fix crash for Android, close flutter-webrtc#757 and flutter-webrtc#734.
1 parent fc2749b commit 214bd45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/SimulcastVideoEncoderFactoryWrapper.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ internal class SimulcastVideoEncoderFactoryWrapper(
174174
if (encoder == null) {
175175
return null
176176
}
177+
if (encoder is WrappedNativeVideoEncoder) {
178+
return encoder
179+
}
177180
return StreamEncoderWrapper(encoder)
178181
}
179182

@@ -204,4 +207,4 @@ internal class SimulcastVideoEncoderFactoryWrapper(
204207
return native.supportedCodecs
205208
}
206209

207-
}
210+
}

0 commit comments

Comments
 (0)
0