mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support fmle publish. fix bug of rtmp chunk stream.
This commit is contained in:
parent
e598616e14
commit
33c586181d
9 changed files with 497 additions and 249 deletions
|
@ -45,4 +45,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
// free the p and set to NULL.
|
||||
// p must be a T*.
|
||||
#define srs_freep(p) \
|
||||
if (p) { \
|
||||
delete p; \
|
||||
p = NULL; \
|
||||
} \
|
||||
(void)0
|
||||
// free the p which represents a array
|
||||
#define srs_freepa(p) \
|
||||
if (p) { \
|
||||
delete[] p; \
|
||||
p = NULL; \
|
||||
} \
|
||||
(void)0
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue