Dan Kortschak
18e1e7fc45
rtmp: simplify indexing
...
This is a mechanical change with the addition of a constant:
gofmt -w -r '*indxBytePtr(unsafe.Pointer(p), i)->(*[_Gi]byte)(unsafe.Pointer(p))[i]' {rtmp,parseurl,amf}.go
2018-08-31 11:24:42 +09:30
Dan Kortschak
6187df1c20
rtmp: remove deadcode and make tests pass
2018-08-31 11:13:59 +09:30
Saxon Milton
ddefd198d0
Merged in rtmp-structure-improvements (pull request #48 )
...
rtmp: structure improvements
Approved-by: kortschak <dan@kortschak.io>
2018-08-30 11:06:44 +00:00
Dan Kortschak
4aad7bac04
rtmp: remove rtmp.c
2018-08-30 20:34:09 +09:30
Dan Kortschak
7da8c11c58
rtmp: port add_addr_info and remove unused includes
2018-08-30 20:31:19 +09:30
kortschak
933367c06c
Merged in lexer (pull request #50 )
...
lex: add missing lex package
Approved-by: kortschak <dan@kortschak.io>
2018-08-28 11:00:26 +00:00
Dan Kortschak
562ae8d3f3
lex: add missing lex package
2018-08-28 20:28:57 +09:30
saxon
e0c3cd3b32
rtmp: added more funcs to NOT_PORTED and removed commented out sections from AMFProp_Decode in amf.go
2018-08-28 20:10:13 +09:30
saxon
01f3caa8ec
rtmp: created NOT_PORTED.txt to hold names of funcs not ported and also deleted sections of code not run in our case
2018-08-28 19:18:13 +09:30
saxon
766d30e2f6
rtmp: setting r.m_nClientBW2 to 255 rather than 0 (which was incorrect in C_HandlClientBW
2018-08-28 18:50:51 +09:30
saxon
8318f34be4
rtmp: removed case braces in C_HandlInvoke and replaced code not run with panics in case we do get those cases
2018-08-28 18:40:10 +09:30
saxon
bd630fd893
rtmp: added all consts/flags from C library
2018-08-26 14:35:04 +09:30
saxon
b846dbf2d7
rtmp: continued to port C_SendFCUnpublish - paused - need to work out best way to get rid of unsafe pointers
2018-08-26 00:27:38 +09:30
saxon
9384927113
rtmp: start porting C_SendFCUnpublish
2018-08-26 00:18:28 +09:30
saxon
9b67dc1ef0
rtmp: added comments above C_RTMP_Close and C_CloseInternal to indicate location in C library, and reordered to better resemble C library
2018-08-26 00:13:08 +09:30
saxon
7e6b2ee0b2
rtmp: uncommented usage of C_RTMP_Close - created todos in C_CloseInternal
2018-08-25 23:49:54 +09:30
saxon
ba9ce9b37f
rtmp: created rtmp_sys.go file to emulate rtmp_sys.c in c librtmp library and moved SET_RCVTIMEO there
2018-08-25 23:29:40 +09:30
saxon
6c84506af2
rtmp: dealt with unsupported cases in C_RTMP_ClientPacket
2018-08-25 23:22:22 +09:30
saxon
77393a1de7
rtmp: simplified C_RTMP_Alloc and zeroed C_RTMP object in C_RTMP_Init
2018-08-25 22:32:24 +09:30
saxon
0ed5d4bc72
rtmp: put C_RTMPPacket_IsReady in rtmp_headers.go - consistent with C librtmp structure
2018-08-25 22:28:59 +09:30
saxon
a08c29ce81
rtmp: moved C_AVMATCH and C_AVC into amf_headers.go - consistent with C structure
2018-08-25 22:27:20 +09:30
saxon
36dfa31c48
rtmp: fixed broken cases, removed braces from cases, added panic to unsupported types in AMFPRop_Decode
2018-08-25 17:37:36 +09:30
kortschak
ea33007173
Merged in deshim (pull request #47 )
...
revid,stream: improve package organisation
Approved-by: saxon.milton@gmail.com <saxon.milton@gmail.com>
2018-08-24 21:17:17 +00:00
saxon
ecb3f3f4c2
rtmp: finished reordering amf.go such that it resembles the C amf.c file more closely - also readded C_AV_Queue, which I must have deleted somehow
2018-08-24 22:30:40 +09:30
saxon
d23ab3b1a0
rtmp: Finished reordering funcs in rtmp.go to better reflect order in rtmp.c in C librtmp
2018-08-24 18:50:04 +09:30
saxon
43701a252f
rtmp: start reordering funcs in rtmp.go, still need to do a few more
2018-08-24 10:43:34 +09:30
saxon
1441d1d968
rtmp: reordered struct order in rtmp_headers.go such that it matches up with order in rtmp.h under C librtmp
2018-08-24 10:34:10 +09:30
saxon
e22516d9cb
rtmp: fixed order of struct declarations in amf_headers.go to match that of amf.h under C librtmp?
2018-08-24 10:30:24 +09:30
saxon
dfa146f276
rtmp: file header comments to reflect file name and appropriate authors
2018-08-24 10:25:36 +09:30
saxon
9cb70ac06b
rtmp: created session.go file and moved librtmp wrapper functions into this file, i.e. NewSession, Open, Close and Write
2018-08-24 09:52:51 +09:30
saxon
4fa0637fa1
rtmp: moved amf structs into amf_headers.go and rtmp structs into rtmp_headers.go
2018-08-24 09:47:11 +09:30
saxon
dec662d19e
rtmp: created rtmp_headers.go and amf_headers.go files to store stuff that was in rtmp.h and amf.h files respectively
2018-08-24 09:41:02 +09:30
saxon
0adddd1833
rtmp: started reordering funcs in rtmp.go - realised that I need a rtmp_headers.go file to store stuff that's from rtmp.h
2018-08-24 09:38:17 +09:30
saxon
898c843f18
rtmp: added appropriate imports to each file to correct build errors
2018-08-24 09:33:05 +09:30
saxon
68b9f2a5e0
rtmp: created parseurl file and moved C_RTMP_ParseURL and C_RTMP_ParsePlaypath from to rtmp.go to parseurl.go
2018-08-24 07:04:01 +09:30
saxon
8f3d4b75bf
rtmp: moved all AMF funcs from rtmp.go to amf.go
2018-08-24 06:58:22 +09:30
saxon
7a9fef826c
rtmp: moved amf structs from rtmp.go to amf.go
2018-08-24 06:49:47 +09:30
saxon
595fa5a469
rtmp: tracking new file amf.go
2018-08-24 06:47:13 +09:30
saxon
6019bb4559
rtmp: moved amf enum from rtmp.go to amf.go
2018-08-24 06:44:15 +09:30
saxon.milton@gmail.com
d813a56ad6
Merged in librtmpPorting (pull request #41 )
...
LibrtmpPorting
Approved-by: saxon.milton@gmail.com <saxon.milton@gmail.com>
2018-08-23 20:55:15 +00:00
saxon
ce95cad9ef
rtmp: addedd additional licensing information in rtmp.go header
2018-08-24 06:14:37 +09:30
saxon
fbd94e659f
rtmp: updated cgo LDFLAGS so that not outdated and does not cause undefined symbol runtime error on pi
2018-08-24 06:11:21 +09:30
Dan Kortschak
b8bf44f57e
parse=>stream/lex: move lexing to better location and name
2018-08-23 15:06:32 +09:30
Dan Kortschak
eedc473125
revid,parse: remove io.Writer/stream.Encoder shim
2018-08-23 14:51:12 +09:30
kortschak
90fac96048
Merged in encoding (pull request #45 )
...
encoding: remove in-bound chans
Approved-by: Alan Noble <anoble@gmail.com>
2018-08-23 04:31:38 +00:00
saxon
07518774b4
rtmp: fixed testing file
2018-08-22 16:18:38 +09:30
saxon
0def69f012
revid: added flag options to usage output
2018-08-22 13:45:20 +09:30
saxon
6dd791f7e1
rtmp: changed call to allocate to call to malloc as allocate does not exist anymore
2018-08-21 18:44:26 +09:30
saxon
5f7d84a120
revid: getting rid of crt dependency and using C.realloc for the time being
2018-08-21 18:42:13 +09:30
Alan Noble
ce04e5f5ce
revid: convert size for realloc to int32 so that compiler doesn't complain when on go1.10
2018-08-21 17:58:04 +09:30