Initialize variable for all goto paths in RTMPPublisher
Fixes "Run-Time Check Failure"s for debug mode binaries in case the service selection in RTMPPublisher::CreateConnectionThread fails
This commit is contained in:
parent
47a96a065d
commit
1b93554034
@ -792,6 +792,8 @@ DWORD WINAPI RTMPPublisher::CreateConnectionThread(RTMPPublisher *publisher)
|
||||
bool bSuccess = false;
|
||||
bool bCanRetry = false;
|
||||
|
||||
RTMP *rtmp = nullptr;
|
||||
|
||||
String failReason;
|
||||
String strBindIP;
|
||||
|
||||
@ -883,7 +885,7 @@ DWORD WINAPI RTMPPublisher::CreateConnectionThread(RTMPPublisher *publisher)
|
||||
OSEnterMutex(publisher->hRTMPMutex);
|
||||
publisher->rtmp = RTMP_Alloc();
|
||||
|
||||
RTMP *rtmp = publisher->rtmp;
|
||||
rtmp = publisher->rtmp;
|
||||
RTMP_Init(rtmp);
|
||||
|
||||
RTMP_LogSetCallback(librtmpErrorCallback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user