1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 16:12:19 +00:00

Reduce chan sizes

This commit is contained in:
Alexandre Iooss 2020-10-14 15:43:54 +02:00
parent 16756be5b4
commit 1e712b2795
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -44,8 +44,8 @@ func main() {
localSdpChan := make(chan webrtc.SessionDescription) localSdpChan := make(chan webrtc.SessionDescription)
// SRT channel for forwarding and webrtc // SRT channel for forwarding and webrtc
forwardingChannel := make(chan srt.Packet, 65536) forwardingChannel := make(chan srt.Packet, 64)
webrtcChannel := make(chan srt.Packet, 65536) webrtcChannel := make(chan srt.Packet, 64)
// Start routines // Start routines
go forwarding.Serve(forwardingChannel, cfg.Forwarding) go forwarding.Serve(forwardingChannel, cfg.Forwarding)