From 152df3ef5de97785f9b80a93fea4518aadaf5903 Mon Sep 17 00:00:00 2001 From: Alex X Date: Mon, 13 May 2024 07:11:57 +0300 Subject: [PATCH] Fix pkt_size key name in json format --- internal/rtsp/rtsp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rtsp/rtsp.go b/internal/rtsp/rtsp.go index 4cb8421f..c5e21678 100644 --- a/internal/rtsp/rtsp.go +++ b/internal/rtsp/rtsp.go @@ -21,7 +21,7 @@ func Init() { Username string `yaml:"username" json:"-"` Password string `yaml:"password" json:"-"` DefaultQuery string `yaml:"default_query" json:"default_query"` - PacketSize uint16 `yaml:"pkt_size" json:"packet_size"` + PacketSize uint16 `yaml:"pkt_size" json:"pkt_size,omitempty"` } `yaml:"rtsp"` }