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:
palana 2014-04-03 14:38:10 +02:00
parent 47a96a065d
commit 1b93554034

View File

@ -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);