trying something else

This commit is contained in:
Saxon1 2018-05-06 00:10:54 +09:30
parent 43277c81ac
commit c56f414229
1 changed files with 3 additions and 0 deletions

View File

@ -70,14 +70,17 @@ unsigned int RTMP_write_frame(char* data, uint data_length){
if (!RTMP_IsConnected(rtmp)) {
printf("RTMP is not connected!\n");
free(dataForC);
free(data);
return 0;
}
if (!RTMP_Write(rtmp, (const char*)data, data_length)) {
printf("RTMP write error!\n");
free(dataForC);
free(data);
return 0;
}
free(dataForC);
free(data);
return 1;
}