From ca43bfe6d90b7d21084bcd5c6cd3a0ef9aaa00f3 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 28 Feb 2017 14:54:53 +0800 Subject: [PATCH] Fix build failed, for srs librtmp API changed. --- trunk/research/librtmp/srs_detect_rtmp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/research/librtmp/srs_detect_rtmp.c b/trunk/research/librtmp/srs_detect_rtmp.c index 8de52c0b6..6bcc64a0a 100644 --- a/trunk/research/librtmp/srs_detect_rtmp.c +++ b/trunk/research/librtmp/srs_detect_rtmp.c @@ -140,8 +140,13 @@ int main(int argc, char** argv) goto rtmp_destroy; } srs_human_trace("do simple handshake success"); + + 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_app3(rtmp, sus)) != 0) { + if ((ret = srs_rtmp_connect_app(rtmp)) != 0) { srs_human_trace("connect vhost/app failed. ret=%d", ret); goto rtmp_destroy; }