mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine hijack io for srslibrtmp
This commit is contained in:
parent
e8c48ac8f8
commit
7acc3aca16
6 changed files with 14 additions and 13 deletions
|
|
@ -539,7 +539,7 @@ srs_rtmp_t srs_rtmp_create(const char* url)
|
|||
srs_freep(context->skt);
|
||||
context->skt = new SimpleSocketStream();
|
||||
|
||||
if (context->skt->create_socket() != ERROR_SUCCESS) {
|
||||
if (context->skt->create_socket(context) != ERROR_SUCCESS) {
|
||||
// free the context and return NULL
|
||||
srs_freep(context);
|
||||
return NULL;
|
||||
|
|
@ -561,7 +561,7 @@ srs_rtmp_t srs_rtmp_create2(const char* url)
|
|||
srs_freep(context->skt);
|
||||
context->skt = new SimpleSocketStream();
|
||||
|
||||
if (context->skt->create_socket() != ERROR_SUCCESS) {
|
||||
if (context->skt->create_socket(context) != ERROR_SUCCESS) {
|
||||
// free the context and return NULL
|
||||
srs_freep(context);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue