Skip to content

Commit e4dfd6a

Browse files
committed
fixed:incorrect not set push stream addr when pre-play client leave
1 parent d0da682 commit e4dfd6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

XEngine_Source/XEngine_ServiceApp/XEngine_StreamMediaApp/StreamMedia_PushStream/PushStream_RTMPTask.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ bool PushStream_RTMPTask_Handle(XENGINE_RTMPHDR* pSt_RTMPHdr, LPCXSTR lpszClient
223223
for (int i = 0; i < nListCount; i++)
224224
{
225225
PushStream_RTMPTask_Play(ppSt_PullList[i]->tszClientAddr, lpszClientAddr, ptszSDBuffer);
226+
ModuleSession_PullStream_SetPushAddr(ppSt_PullList[i]->tszClientAddr, lpszClientAddr);
226227
}
227228
BaseLib_Memory_Free((XPPPMEM)&ppSt_PullList, nListCount);
228229
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X("RTMP推流端:%s,预发布流通知成功,个数:%d"), lpszClientAddr, nListCount);

0 commit comments

Comments
 (0)