Skip to content

Commit cbb5edc

Browse files
suzp1984xiaozhihong
authored andcommitted
SrsContextId assignment can be improved without create a duplicated one. v5.0.175 (#3503)
SrsContextId object creation can be improved on `srs_protocol_log.cpp`, No need to create one, then assign it back. It seems a common mistake for Cpp programmers. --------- Co-authored-by: john <[email protected]>
1 parent 8d6b882 commit cbb5edc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

trunk/doc/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The changelog for SRS.
77
<a name="v5-changes"></a>
88

99
## SRS 5.0 Changelog
10+
* v5.0, 2023-08-28, Merge [#3503](https://github.com/ossrs/srs/pull/3503): SrsContextId assignment can be improved without create a duplicated one. v5.0.175 (#3503)
1011
* v5.0, 2023-08-28, Merge [#3781](https://github.com/ossrs/srs/pull/3781): HLS: Fix on_hls and hls_dispose critical zone issue. v5.0.174 (#3781)
1112
* v5.0, 2023-08-28, Merge [#3768](https://github.com/ossrs/srs/pull/3768): Support include empty config file. v5.0.173 (#3768)
1213
* v5.0, 2023-08-25, Merge [#3782](https://github.com/ossrs/srs/pull/3782): HLS: Support reload HLS asynchronously. v5.0.172 (#3782)

trunk/src/core/srs_core_version5.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
#define VERSION_MAJOR 5
1111
#define VERSION_MINOR 0
12-
#define VERSION_REVISION 174
12+
#define VERSION_REVISION 175
1313

1414
#endif

trunk/src/protocol/srs_protocol_log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SrsThreadContext::~SrsThreadContext()
3333

3434
SrsContextId SrsThreadContext::generate_id()
3535
{
36-
SrsContextId cid = SrsContextId();
36+
SrsContextId cid;
3737
return cid.set_value(srs_random_str(8));
3838
}
3939

0 commit comments

Comments
 (0)