mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 15:02:19 +00:00
Don't hardcode SRT API value
This commit is contained in:
parent
8520fedf87
commit
8c2a7f73d7
@ -1,14 +1,15 @@
|
||||
package srt
|
||||
|
||||
// #include <srt/srt.h>
|
||||
import "C"
|
||||
import (
|
||||
"github.com/haivision/srtgo"
|
||||
"gitlab.crans.org/nounous/ghostream/auth"
|
||||
"gitlab.crans.org/nounous/ghostream/auth/bypass"
|
||||
"log"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/haivision/srtgo"
|
||||
)
|
||||
|
||||
// Options holds web package configuration
|
||||
@ -68,7 +69,7 @@ func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel chan Packet
|
||||
break // FIXME: should not break here
|
||||
}
|
||||
|
||||
streamId, err := s.GetSockOptString(46) // SRTO_STREAMID
|
||||
streamId, err := s.GetSockOptString(C.SRTO_STREAMID)
|
||||
if err != nil {
|
||||
log.Println("Error while fetching stream key:", err)
|
||||
s.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user