more logs
This commit is contained in:
@@ -532,21 +532,23 @@ type prevImage struct {
|
|||||||
|
|
||||||
func logCodecSupport() {
|
func logCodecSupport() {
|
||||||
codecLogOnce.Do(func() {
|
codecLogOnce.Do(func() {
|
||||||
|
h264Status := "disabled"
|
||||||
if h264Available() {
|
if h264Available() {
|
||||||
detail := h264AvailabilityDetail()
|
h264Status = "enabled"
|
||||||
if detail != "" {
|
|
||||||
log.Printf("capture: codec support h264=enabled (%s) jpeg=enabled", detail)
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
log.Printf("capture: codec support h264=enabled jpeg=enabled")
|
if detail := h264AvailabilityDetail(); detail != "" {
|
||||||
return
|
h264Status += " (" + detail + ")"
|
||||||
}
|
}
|
||||||
detail := h264AvailabilityDetail()
|
|
||||||
if detail != "" {
|
hevcStatus := "disabled"
|
||||||
log.Printf("capture: codec support h264=disabled (%s), jpeg=enabled", detail)
|
if hevcAvailable() {
|
||||||
return
|
hevcStatus = "enabled"
|
||||||
}
|
}
|
||||||
log.Printf("capture: codec support h264=disabled, jpeg=enabled")
|
if detail := hevcAvailabilityDetail(); detail != "" {
|
||||||
|
hevcStatus += " (" + detail + ")"
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Printf("capture: codec support h264=%s hevc=%s jpeg=enabled", h264Status, hevcStatus)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user