提交 d3c8f81c 编写于 作者: J jp9000

obs-outputs: Fix potential RTMP auth issue

上级 76e864bf
......@@ -3046,7 +3046,18 @@ HandleInvoke(RTMP *r, const char *body, unsigned int nBodySize)
AMFProp_GetString(AMF_GetProp(&obj2, &av_description, -1), &description);
RTMP_Log(RTMP_LOGDEBUG, "%s, error description: %s", __FUNCTION__, description.av_val);
/* if PublisherAuth returns 1, then reconnect */
PublisherAuth(r, &description);
if (PublisherAuth(r, &description) == 1)
{
RTMP_Close(r);
if (r->Link.pFlags & RTMP_PUB_CLATE)
{
r->Link.pFlags |= RTMP_PUB_CLEAN;
}
if (!RTMP_Connect(r, NULL) || !RTMP_ConnectStream(r, 0))
{
goto leave;
}
}
}
}
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册