1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-30 22:51:14 +02:00

Use reference to Stream

This commit is contained in:
Alexandre Iooss
2020-10-17 13:43:16 +02:00
parent 5b85eed646
commit 5b8c73057b
6 changed files with 30 additions and 18 deletions

View File

@ -44,7 +44,7 @@ var (
templates *template.Template
// Streams to get statistics
streams map[string]stream.Stream
streams map[string]*stream.Stream
)
// Load templates with pkger
@ -78,7 +78,7 @@ func loadTemplates() error {
}
// Serve HTTP server
func Serve(s map[string]stream.Stream, rSdpChan chan struct {
func Serve(s map[string]*stream.Stream, rSdpChan chan struct {
StreamID string
RemoteDescription webrtc.SessionDescription
}, lSdpChan chan webrtc.SessionDescription, c *Options) {