1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix build failed, for srs librtmp API changed.

This commit is contained in:
winlin 2017-02-28 14:54:53 +08:00
parent cdfded6a74
commit ca43bfe6d9

View file

@ -141,7 +141,12 @@ int main(int argc, char** argv)
} }
srs_human_trace("do simple handshake success"); srs_human_trace("do simple handshake success");
if ((ret = srs_rtmp_connect_app3(rtmp, sus)) != 0) { if ((ret = srs_rtmp_set_schema(rtmp, sus)) != 0) {
srs_human_trace("set url schema=%d failed, ret=%d", sus, ret);
goto rtmp_destroy;
}
if ((ret = srs_rtmp_connect_app(rtmp)) != 0) {
srs_human_trace("connect vhost/app failed. ret=%d", ret); srs_human_trace("connect vhost/app failed. ret=%d", ret);
goto rtmp_destroy; goto rtmp_destroy;
} }