mirror of https://bitbucket.org/ausocean/av.git
Replaced RTMP_Init with Saxon's rtmpInit - tested and works
This commit is contained in:
parent
12788e0325
commit
3b25a0f254
|
@ -361,7 +361,7 @@ func (s *session) Write(data []byte) (int, error) {
|
|||
func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
|
||||
connect_timeout := C.int(timeout)
|
||||
rtmp = rtmpAlloc()
|
||||
C.RTMP_Init(rtmp)
|
||||
rtmpInit(rtmp)
|
||||
rtmp.Link.timeout = connect_timeout
|
||||
if C.RTMP_SetupURL(rtmp, (*C.char)(unsafe.Pointer(goStrToCStr(u)))) == 0 {
|
||||
C.RTMP_Close(rtmp)
|
||||
|
|
Loading…
Reference in New Issue