mirror of https://bitbucket.org/ausocean/av.git
trying something else
This commit is contained in:
parent
43277c81ac
commit
c56f414229
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue