rtmp: make C_CloseInternal reconnect a bool

This commit is contained in:
Dan Kortschak 2018-09-19 14:08:09 +09:30
parent 0eb66a6ece
commit 467984513b
1 changed files with 4 additions and 4 deletions

View File

@ -1669,12 +1669,12 @@ func C_RTMP_SendPacket(r *C_RTMP, packet *C_RTMPPacket, queue int) (ok bool) {
// void RTMP_Close(RTMP *r);
// rtmp.c +4168
func C_RTMP_Close(r *C_RTMP) {
C_CloseInternal(r, 0)
C_CloseInternal(r, false)
}
// static void CloseInternal(RTMP *r, int reconnect);
// rtmp.c +4175
func C_CloseInternal(r *C_RTMP, reconnect int32) {
func C_CloseInternal(r *C_RTMP, reconnect bool) {
var i int32
if C_RTMP_IsConnected(r) != 0 {
@ -1719,12 +1719,12 @@ func C_CloseInternal(r *C_RTMP, reconnect int32) {
r.m_resplen = 0
r.m_unackd = 0
if ((r.Link.lFlags & RTMP_LF_FTCU) != 0) && (reconnect == 0) {
if ((r.Link.lFlags & RTMP_LF_FTCU) != 0) && !reconnect {
r.Link.app = ""
r.Link.lFlags ^= RTMP_LF_FAPU
}
if reconnect == 0 {
if !reconnect {
r.Link.playpath0 = ""
}
}