8000 Wrap unsafe EventSink · linuxerwang/flutter-webrtc@e934818 · GitHub
[go: up one dir, main page]

Skip to content

Commit e934818

Browse files
authored
Wrap unsafe EventSink
1 parent 52d13b2 commit e934818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/FlutterRTCVideoRenderer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.util.Log;
44
import android.graphics.SurfaceTexture;
55

6+
import com.cloudwebrtc.webrtc.utils.AnyThreadSink;
67
import com.cloudwebrtc.webrtc.utils.ConstraintsMap;
78
import com.cloudwebrtc.webrtc.utils.EglUtils;
89

@@ -111,7 +112,7 @@ public void setId(int id){
111112

112113
@Override
113114
public void onListen(Object o, EventChannel.EventSink sink) {
114-
eventSink = sink;
115+
eventSink = new AnyThreadSink(sink);
115116
}
116117

117118
@Override

0 commit comments

Comments
 (0)
0