Skip to content

Commit c065db6

Browse files
committed
Code refactoring after #1539
1 parent a55be80 commit c065db6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/onvif/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ func GetProfileResponse(name string) []byte {
161161
}
162162

163163
func appendProfile(e *Envelope, tag, name string) {
164+
// empty `RateControl` important for UniFi Protect
164165
e.Append(`<trt:`, tag, ` token="`, name, `" fixed="true">
165166
<tt:Name>`, name, `</tt:Name>
166167
<tt:VideoSourceConfiguration token="`, name, `">
@@ -172,7 +173,7 @@ func appendProfile(e *Envelope, tag, name string) {
172173
<tt:Name>VEC</tt:Name>
173174
<tt:Encoding>H264</tt:Encoding>
174175
<tt:Resolution><tt:Width>1920</tt:Width><tt:Height>1080</tt:Height></tt:Resolution>
175-
<trt:RateControl></trt:RateControl>
176+
<tt:RateControl />
176177
</tt:VideoEncoderConfiguration>
177178
</trt:`, tag, `>
178179
`)

0 commit comments

Comments
 (0)