1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

SRT: use default streamid when empty (#3202)

* SRT: use default streamid when empty

* Fix #3198: SRT: Support PUSH SRT by IP and optional port. v5.0.76

Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
john 2022-10-08 19:28:28 -05:00 committed by GitHub
parent c12deded98
commit f1be2ebd3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -7,6 +7,7 @@ The changelog for SRS.
## SRS 5.0 Changelog ## SRS 5.0 Changelog
* v5.0, 2022-10-09, Fix [#3198](https://github.com/ossrs/srs/issues/3198): SRT: Support PUSH SRT by IP and optional port. v5.0.76
* v5.0, 2022-10-06, GB28181: Support GB28181-2016 protocol. v5.0.74 * v5.0, 2022-10-06, GB28181: Support GB28181-2016 protocol. v5.0.74
* v5.0, 2022-10-05, HTTP: Skip body and left message by upgrade. v5.0.73 * v5.0, 2022-10-05, HTTP: Skip body and left message by upgrade. v5.0.73
* v5.0, 2022-10-02, ST: Support set context id while thread running. v5.0.72 * v5.0, 2022-10-02, ST: Support set context id while thread running. v5.0.72

View file

@ -256,9 +256,10 @@ srs_error_t SrsMpegtsSrtConn::do_cycle()
return srs_error_wrap(err, "get srt streamid"); return srs_error_wrap(err, "get srt streamid");
} }
// Must have streamid, because srt ts packet will convert to rtmp or rtc. // If streamid empty, using default streamid instead.
if (streamid.empty()) { if (streamid.empty()) {
return srs_error_new(ERROR_SRT_CONN, "empty srt streamid"); streamid = "#!::r=live/livestream,m=publish";
srs_warn("srt get empty streamid, using default steramid %s instead", streamid.c_str());
} }
// Detect streamid of srt to request. // Detect streamid of srt to request.

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 5 #define VERSION_MAJOR 5
#define VERSION_MINOR 0 #define VERSION_MINOR 0
#define VERSION_REVISION 75 #define VERSION_REVISION 76
#endif #endif