1
0
Fork 0
forked from External/mediamtx

rpi: pass log level to libcamera (#2617) (#2811)

This commit is contained in:
Alessandro Ros 2023-12-15 12:10:16 +01:00 committed by GitHub
parent 22414bb38c
commit 0c131a2e92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 71 additions and 33 deletions

View file

@ -31,6 +31,7 @@ type staticSourceHandlerParent interface {
// staticSourceHandler is a static source handler.
type staticSourceHandler struct {
conf *conf.Path
logLevel conf.LogLevel
readTimeout conf.StringDuration
writeTimeout conf.StringDuration
writeQueueSize int
@ -108,7 +109,8 @@ func (s *staticSourceHandler) initialize() {
case s.resolvedSource == "rpiCamera":
s.instance = &rpicamerasource.Source{
Parent: s,
LogLevel: s.logLevel,
Parent: s,
}
}
}