Skip to content

Commit 459272b

Browse files
committed
Merge #1077 from 2.0release
2 parents c528b41 + 0fe17c3 commit 459272b

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ Please select according to languages:
233233

234234
### V2 changes
235235

236+
* v2.0, 2018-02-28, Merge [#1077][bug #1077], fix crash for edge HLS. 2.0.247
236237
* v2.0, 2018-02-13, Fix [#1059][bug #1059], support vhost in stream parameters. 2.0.246
237238
* v2.0, 2018-01-07, Merge [#1045][bug #1045], fix [#1044][bug #1044], TCP connection alive detection. 2.0.245
238239
* v2.0, 2018-01-04, Merge [#1039][bug #1039], fix bug of init.d script.
@@ -1430,6 +1431,7 @@ Winlin
14301431
[bug #1044]: https://github.com/ossrs/srs/issues/1044
14311432
[bug #1045]: https://github.com/ossrs/srs/issues/1045
14321433
[bug #1059]: https://github.com/ossrs/srs/issues/1059
1434+
[bug #1077]: https://github.com/ossrs/srs/issues/1077
14331435
[bug #xxxxxxxxxx]: https://github.com/ossrs/srs/issues/xxxxxxxxxx
14341436

14351437
[bug #735]: https://github.com/ossrs/srs/issues/735

trunk/src/app/srs_app_hls.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ srs_error_t SrsHls::initialize(SrsOriginHub* h, SrsRequest* r)
10111011
srs_error_t SrsHls::on_publish()
10121012
{
10131013
srs_error_t err = srs_success;
1014-
1014+
10151015
// update the hls time, for hls_dispose.
10161016
last_update_time = srs_get_system_time_ms();
10171017

trunk/src/app/srs_app_rtmp_conn.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ srs_error_t SrsRtmpConn::do_cycle()
172172

173173
rtmp->set_recv_timeout(SRS_CONSTS_RTMP_TMMS);
174174
rtmp->set_send_timeout(SRS_CONSTS_RTMP_TMMS);
175-
175+
176176
if ((err = rtmp->handshake()) != srs_success) {
177177
return srs_error_wrap(err, "rtmp handshake");
178178
}
@@ -472,28 +472,28 @@ srs_error_t SrsRtmpConn::stream_service_cycle()
472472
req->strip();
473473
srs_trace("client identified, type=%s, vhost=%s, app=%s, stream_name=%s, duration=%.2f",
474474
srs_client_type_string(info->type).c_str(), req->vhost.c_str(), req->app.c_str(), req->stream.c_str(), req->duration);
475-
475+
476476
// discovery vhost, resolve the vhost from config
477477
SrsConfDirective* parsed_vhost = _srs_config->get_vhost(req->vhost);
478478
if (parsed_vhost) {
479479
req->vhost = parsed_vhost->arg0();
480480
}
481-
481+
482482
if (req->schema.empty() || req->vhost.empty() || req->port == 0 || req->app.empty()) {
483483
return srs_error_new(ERROR_RTMP_REQ_TCURL, "discovery tcUrl failed, tcUrl=%s, schema=%s, vhost=%s, port=%d, app=%s",
484484
req->tcUrl.c_str(), req->schema.c_str(), req->vhost.c_str(), req->port, req->app.c_str());
485485
}
486-
486+
487487
// check vhost, allow default vhost.
488488
if ((err = check_vhost(true)) != srs_success) {
489489
return srs_error_wrap(err, "check vhost");
490490
}
491-
491+
492492
srs_trace("connected stream, tcUrl=%s, pageUrl=%s, swfUrl=%s, schema=%s, vhost=%s, port=%d, app=%s, stream=%s, args=%s",
493493
req->tcUrl.c_str(), req->pageUrl.c_str(), req->swfUrl.c_str(),
494494
req->schema.c_str(), req->vhost.c_str(), req->port,
495495
req->app.c_str(), req->stream.c_str(), (req->args? "(obj)":"null"));
496-
496+
497497
// do token traverse before serve it.
498498
// @see https://github.com/ossrs/srs/pull/239
499499
if (true) {
@@ -505,7 +505,7 @@ srs_error_t SrsRtmpConn::stream_service_cycle()
505505
}
506506
}
507507
}
508-
508+
509509
// security check
510510
if ((err = security->check(info->type, ip, req)) != srs_success) {
511511
return srs_error_wrap(err, "rtmp: security check");

trunk/src/app/srs_app_rtsp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ srs_error_t SrsRtspConn::connect()
643643
std::string schema, host, vhost, app, param;
644644
int port;
645645
srs_discovery_tc_url(rtsp_tcUrl, schema, host, vhost, app, rtsp_stream, port, param);
646-
646+
647647
// generate output by template.
648648
std::string output = output_template;
649649
output = srs_string_replace(output, "[app]", app);

trunk/src/libs/srs_librtmp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ int srs_librtmp_context_parse_uri(Context* context)
479479
int ret = ERROR_SUCCESS;
480480

481481
std::string schema;
482-
482+
483483
srs_parse_rtmp_url(context->url, context->tcUrl, context->stream);
484484

485485
// when connect, we only need to parse the tcUrl

0 commit comments

Comments
 (0)