ChenGH
13597d1b7f
update copyright to 2025. v5.0.218 v6.0.159 v7.0.21 ( #4271 )
...
update copyright to 2025
---------
Co-authored-by: john <hondaxiao@tencent.com>
Co-authored-by: winlin <winlinvip@gmail.com>
2025-01-14 17:35:18 +08:00
Winlin
23d2602c34
UniquePtr: Support SrsUniquePtr to replace SrsAutoFree. v6.0.136 ( #4109 )
...
To manage an object:
```cpp
// Before
MyClass* ptr = new MyClass();
SrsAutoFree(MyClass, ptr);
ptr->do_something();
// Now
SrsUniquePtr<MyClass> ptr(new MyClass());
ptr->do_something();
```
To manage an array of objects:
```cpp
// Before
char* ptr = new char[10];
SrsAutoFreeA(char, ptr);
ptr[0] = 0xf;
// Now
SrsUniquePtr<char[]> ptr(new char[10]);
ptr[0] = 0xf;
```
In fact, SrsUniquePtr is a limited subset of SrsAutoFree, mainly
managing pointers and arrays. SrsUniquePtr is better than SrsAutoFree
because it has the same API to standard unique ptr.
```cpp
SrsUniquePtr<MyClass> ptr(new MyClass());
ptr->do_something();
MyClass* p = ptr.get();
```
SrsAutoFree actually uses a pointer to a pointer, so it can be set to
NULL, allowing the pointer's value to be changed later (this usage is
different from SrsUniquePtr).
```cpp
// OK to free ptr correctly.
MyClass* ptr;
SrsAutoFree(MyClass, ptr);
ptr = new MyClass();
// Crash because ptr is an invalid pointer.
MyClass* ptr;
SrsUniquePtr<MyClass> ptr(ptr);
ptr = new MyClass();
```
Additionally, SrsAutoFreeH can use specific release functions, which
SrsUniquePtr does not support.
---------
Co-authored-by: Jacob Su <suzp1984@gmail.com>
2024-07-09 10:29:36 +08:00
winlin
2a2da2253f
Switch to 2013-2024. v6.0.109
2024-01-01 10:51:24 +08:00
winlin
29eff1a242
Refine LICENSE.
2023-10-23 14:33:19 +08:00
winlin
c46ef81ff2
SRS5: Update license date to 2023. v5.0.123
...
PICK 72f8ed4916
2023-01-01 08:56:20 +08:00
winlin
d117145b95
Update date from 2021 to 2022.
2022-06-20 19:22:25 +08:00
winlin
fa78cf3354
Prefix with srs_protocol in protocol directory.
2022-06-09 20:26:58 +08:00
winlin
d5c86dc5fa
Switch LICENSE from MIT to **MIT or MulanPSL-2.0**. v5.0.21
2022-01-13 18:40:22 +08:00
Winlin
c8a1e0f3da
Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8 ( #2464 )
...
* Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8
* Update README.md
* Update README.md
* Refine format for AUTHORS.md
2021-07-08 14:30:47 +08:00
winlin
15901cacee
SquashSRS4: Use SPDX-License-Identifier: MIT. 5.0.3
2021-05-31 13:42:20 +08:00
winlin
8b74c7cb89
SquashSRS4: Happy 2021
2021-04-16 09:29:43 +08:00
winlin
ed338f4c0a
Refactor macro SRS_AUTO_XXX to SRS_XXX.
2020-04-29 20:02:28 +08:00
winlin
d783a12f89
Happy 2020
2019-12-30 10:10:35 +08:00
winlin
ad70589347
For #1229 , fix the security risk in HDS. 3.0.69
2019-12-11 11:31:32 +08:00
winlin
010e35bec2
Refine get_hds_fragment and get_hds_window in time unit
2019-04-16 08:24:11 +08:00
winlin
b2d1d84634
Change to 2019
2019-01-01 21:37:28 +08:00
winlin
ca1395a807
Change date from 2017 to 2018
2018-01-07 10:58:53 +08:00
winlin
e2c1f58674
For #913 , APP support complex error.
2018-01-01 21:20:57 +08:00
winlin
abcaba33ee
For #913 : TS/HLS/MPEGTS support complex error
2017-09-22 21:50:54 +08:00
winlin
0a57a46016
Refine LICENSE
2017-03-25 21:29:29 +08:00
winlin
f32aab3d92
For #299 , refine code.
2017-03-25 17:21:39 +08:00
winlin
caf69f193d
for #299 , refine the codec object name
2017-02-12 20:38:39 +08:00
winlin
5e419c66f8
For #299 , add dash files.
2017-02-11 21:14:28 +08:00
winlin
7ac932cfa0
update to 2013-2017
2016-12-16 11:57:25 +08:00
winlin
d0c74fa7cd
update 2015 to 2016
2015-12-23 11:35:40 +08:00
winlin
01c46bdbfd
rename org simle-rtmp-server to ossrs
2015-11-11 10:45:45 +08:00
winlin
1ffd5fd455
rename org simple-rtmp-server to ossrs
2015-11-11 10:37:50 +08:00
winlin
f57e537686
for #515 , merge from srs2, use SrsAutoFreeA.
2015-11-02 11:29:20 +08:00
winlin
f4f76cd196
for #515 , use SrsAutoFreeA to free the array.
2015-11-02 11:26:37 +08:00
winlin
0e52fc6d5b
rename SrsStream to SrsBuffer
2015-09-22 08:57:31 +08:00
winlin
a4f51564db
rename kernel stream to buffer
2015-09-22 08:48:55 +08:00
winlin
0aed408855
refine code, to 644 and unix encoding.
2015-07-08 17:44:25 +08:00
winlin
d103557a8b
merge the rtmp sdk to stack.
2015-06-13 16:04:59 +08:00
winlin
b23e196f20
migarate from winlinvip to srs org, move the copyright to srs org.
2015-04-29 17:38:23 +08:00
winlin
f69fa7273b
fix #302 , remove the thread unsafe code, no static.
2015-03-23 21:19:04 +08:00
winlin
a15ce1147f
for #155 , fix all warnings for mac.
2015-03-13 12:53:01 +08:00
wenjie.zhao
643f18abe4
add hds reload supported.#328
2015-03-12 22:38:11 +08:00
winlin
984145de72
for #328 , add todo for hds, check whether disabled, support reload.
2015-03-12 11:52:35 +08:00
winlin
ffef62900f
for #328 , support adobe hds. 2.0.138.
2015-03-12 11:15:15 +08:00
winlin
da56e4fbb9
for #328 , fix hds compile error on mac.
2015-03-12 07:26:30 +08:00
wenjie.zhao
07d8f060eb
refine annotation
2015-03-11 14:36:28 +08:00
wenjie.zhao
570c0d66bd
fix path issue.
2015-03-11 14:34:00 +08:00
wenjie.zhao
d4198ee8ba
add hds supported.
2015-03-11 13:34:58 +08:00