|
|
|
|
@ -7,6 +7,7 @@ import (
@@ -7,6 +7,7 @@ import (
|
|
|
|
|
"reflect" |
|
|
|
|
"sync/atomic" |
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
|
"gopkg.in/alecthomas/kingpin.v2" |
|
|
|
|
|
|
|
|
|
"github.com/aler9/rtsp-simple-server/internal/conf" |
|
|
|
|
@ -64,6 +65,8 @@ func New(args []string) (*Core, bool) {
@@ -64,6 +65,8 @@ func New(args []string) (*Core, bool) {
|
|
|
|
|
// do not check for errors
|
|
|
|
|
rlimit.Raise() |
|
|
|
|
|
|
|
|
|
gin.SetMode(gin.ReleaseMode) |
|
|
|
|
|
|
|
|
|
ctx, ctxCancel := context.WithCancel(context.Background()) |
|
|
|
|
|
|
|
|
|
p := &Core{ |
|
|
|
|
|