mirror of https://bitbucket.org/ausocean/av.git
another potential fix
This commit is contained in:
parent
51ade541c9
commit
567d52aacc
|
@ -41,6 +41,7 @@ unsigned int RTMP_start_session(char* url, uint connect_timeout){
|
|||
rtmp->Link.timeout = connect_timeout;
|
||||
if (!RTMP_SetupURL(rtmp, url)) {
|
||||
printf("Can't setup url!\n");
|
||||
RTMP_Close(rtmp);
|
||||
RTMP_Free(rtmp);
|
||||
return 0;
|
||||
}
|
||||
|
@ -49,6 +50,7 @@ unsigned int RTMP_start_session(char* url, uint connect_timeout){
|
|||
RTMP_SetBufferMS(rtmp, 3600 * 1000);
|
||||
if (!RTMP_Connect(rtmp, NULL)) {
|
||||
printf("RTMP can't connect!\n");
|
||||
RTMP_Close(rtmp);
|
||||
RTMP_Free(rtmp);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue