mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +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:
parent
c12deded98
commit
f1be2ebd3b
3 changed files with 5 additions and 3 deletions
|
@ -7,6 +7,7 @@ The changelog for SRS.
|
|||
|
||||
## 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-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
|
||||
|
|
|
@ -256,9 +256,10 @@ srs_error_t SrsMpegtsSrtConn::do_cycle()
|
|||
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()) {
|
||||
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.
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 75
|
||||
#define VERSION_REVISION 76
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue