Dan Kortschak
467984513b
rtmp: make C_CloseInternal reconnect a bool
2018-09-26 12:10:03 +09:30
Dan Kortschak
0eb66a6ece
rtmp: make C_HandleInvoke take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
b1ecf52a44
rtmp: fix incorrect type
2018-09-26 12:10:03 +09:30
Dan Kortschak
9cfe8c430b
rtmp: use []byte for RTMP message sends
2018-09-26 12:10:03 +09:30
Dan Kortschak
eccc9377ab
rtmp: use []byte for encoding in C_SendConnectPacket
2018-09-26 12:10:03 +09:30
Dan Kortschak
55e454453b
rtmp: remove unnecessary zeroing
2018-09-26 12:10:03 +09:30
Dan Kortschak
eeb1e1933b
rtmp: make C_ReadN take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
5f3f50373b
rtmp: clean up C_SocksNegotiate
2018-09-26 12:10:03 +09:30
Dan Kortschak
d1f870223c
rtmp: make C_WriteN take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
7b69015873
rtmp: make C_RTMPSockBuf_Send take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
bb6ee2a3ce
rtmp: simplify recv call in C_RTMPSockBuf_Fill
2018-09-26 12:10:03 +09:30
Dan Kortschak
b9fcb2202f
rtmp: make C_RTMPSockBuf.sb_timedout a bool
2018-09-26 12:10:03 +09:30
Dan Kortschak
9b5d62a99a
rtmp: clarify C_RTMPSockBuf_Fill
...
The while loop in the C is only there to allow sigint to be caught and
ignored when user interupts are not allowed.
2018-09-26 12:10:03 +09:30
Dan Kortschak
0cfabbbad0
rtmp: remove unused functions
2018-09-26 12:10:03 +09:30
Dan Kortschak
ea5c54c85d
rtmp: remove unsafe and C imports from amf.go
...
unsafe importing functions moved to rtmp.go.
2018-09-26 12:10:03 +09:30
Dan Kortschak
61798fd4a6
rtmp: make C_AMF_Decode take a []byte
...
Also remove never-executed and incorrect error retry logic.
2018-09-26 12:10:03 +09:30
Dan Kortschak
e649a94612
rtmp: remove unused C_AMF_DecodeArray
2018-09-26 12:10:03 +09:30
Dan Kortschak
d88f0601bb
rtmp: make C_AMF_DecodeArray take a []byte
...
This is unused.
2018-09-26 12:10:03 +09:30
Dan Kortschak
7f2385b8a2
rtmp: make C_AMFProp_Decode take a []byte
...
Also fix errors that exists in the librtmp implementation that resulted
in failure to progress the data pointer.
2018-09-26 12:10:03 +09:30
Dan Kortschak
7077165e63
rtmp: removed unused C_AMF3Read{Integer,String}
2018-09-26 12:10:03 +09:30
Dan Kortschak
6b2ddd3deb
rtmp: make C_AMF3Read{Integer,String} take a []byte
...
These functions are unused.
2018-09-26 12:10:03 +09:30
Dan Kortschak
04bd966c89
rtmp: make encoders return []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
47e6db5ca1
rtmp: make C_AMF_EncodeArray take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
d01109ced6
rtmp: make C_AMF_EncodeEcmaArray take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
d38cd89bc3
rtmp: make C_AMF_Encode take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
e0311dae58
rtmp: make C_AMF_PropEncode take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
b8742e9927
rtmp: make C_AMFObject hold a []C_AMFObjectProperty
2018-09-26 12:10:03 +09:30
Dan Kortschak
52f34e4a85
rtmp: make C_AMF_EncodeNamed{Boolean,Number,String} take []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
458eb932aa
rtmp: make C_AMF_EncodeNumber take []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
00b4e167f4
rtmp: make C_AMF_EncodeBoolean take a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
cf87480070
rtmp: make C_AMF_EncodeInt{24,32,String} take []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
73dd7f3a7c
rtmp: remove redundant int16 encoder
2018-09-26 12:10:03 +09:30
Dan Kortschak
a2620e003b
rtmp: make C_EncodeInt32LE take a []byte dst
2018-09-26 12:10:03 +09:30
Dan Kortschak
4f2beed32f
rtmp: make decoders take []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
b86ba9e49a
rtmp: use bool for m_bSendEncoding and m_bSendEncoding
2018-09-26 12:10:03 +09:30
Dan Kortschak
b45f70bdf8
rtmp: make C_RTMP.m_vecChannelsOut a []*C_RTMPPacket
2018-09-26 12:10:03 +09:30
Dan Kortschak
0c124eb761
rtmp: make C_RTMP.m_vecChannelsIn a []*C_RTMPPacket
2018-09-26 12:10:03 +09:30
Dan Kortschak
46786f2436
rtmp: simplify packet allocation
2018-09-26 12:10:03 +09:30
Dan Kortschak
66cdea021c
rtmp: remove incorrect and redundant calloc implementation
2018-09-26 12:10:03 +09:30
Dan Kortschak
f237b5453e
rtmp: make C_RTMP.m_channelTimestamp a []int32
2018-09-26 12:10:03 +09:30
Dan Kortschak
86e07e2b32
rtmp: make C_RTMPChunk.c_chunk a []byte
2018-09-26 12:10:03 +09:30
Dan Kortschak
f387b827ae
rtmp: remove unnecessary type conversions
2018-09-26 12:10:03 +09:30
Dan Kortschak
6978c44de6
rtmp: make m_methodCalls field a slice
2018-09-26 12:10:03 +09:30
Dan Kortschak
26e3bd264a
rtmp: remove read type
2018-09-26 12:10:03 +09:30
Dan Kortschak
ae53aa146e
rtmp: remove librtmp
2018-09-15 07:27:27 +09:30
Dan Kortschak
f0462ee511
rtmp: remove unused fields
...
reported by honnef.co/go/tools/cmd/unused
rtmp_headers.go:145:2: field sb_ssl is unused (U1000)
rtmp_headers.go:167:2: field subscribepath is unused (U1000)
rtmp_headers.go:168:2: field usherToken is unused (U1000)
rtmp_headers.go:170:2: field pubUser is unused (U1000)
rtmp_headers.go:171:2: field pubPasswd is unused (U1000)
rtmp_headers.go:173:2: field edepth is unused (U1000)
rtmp_headers.go:175:2: field stopTime is unused (U1000)
rtmp_headers.go:180:2: field pFlags is unused (U1000)
rtmp_headers.go:189:2: field bufpos is unused (U1000)
rtmp_headers.go:190:2: field buflen is unused (U1000)
rtmp_headers.go:191:2: field timestamp is unused (U1000)
rtmp_headers.go:195:2: field initialFrameType is unused (U1000)
rtmp_headers.go:197:2: field metaHeader is unused (U1000)
rtmp_headers.go:198:2: field initialFrame is unused (U1000)
rtmp_headers.go:199:2: field nMetaHeaderSize is unused (U1000)
rtmp_headers.go:200:2: field nInitialFrameSize is unused (U1000)
rtmp_headers.go:223:2: field m_mediaStamp is unused (U1000)
rtmp_headers.go:224:2: field m_pauseStamp is unused (U1000)
rtmp_headers.go:245:2: field m_polling is unused (U1000)
rtmp_headers.go:248:2: field m_clientID is unused (U1000)
2018-09-09 19:36:55 +09:30
Dan Kortschak
fed685b107
rtmp: fix test
2018-09-08 16:07:00 +09:30
Dan Kortschak
834c2bc632
rtmp: remove C_AVal
2018-09-07 20:40:46 +09:30
Dan Kortschak
dde20e1a7b
rtmp: more simplification of url parsing
2018-09-07 19:41:55 +09:30
Dan Kortschak
9212bed0ed
rtmp: simplify url parsing
2018-09-07 07:02:12 +09:30