mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-01-11 00:58:30 +00:00
Add support for native V4L implementation on Linux/RPi
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"golang.org/x/net/websocket"
|
||||
"goost.org/encoding/base64"
|
||||
|
||||
"github.com/gen2brain/cam2ip/encoder"
|
||||
"github.com/gen2brain/cam2ip/image"
|
||||
"github.com/gen2brain/cam2ip/reader"
|
||||
)
|
||||
|
||||
@@ -35,7 +35,7 @@ func (s *Socket) write(ws *websocket.Conn) {
|
||||
|
||||
w := new(bytes.Buffer)
|
||||
|
||||
err = encoder.New(w).Encode(img)
|
||||
err = image.NewEncoder(w).Encode(img)
|
||||
if err != nil {
|
||||
log.Printf("socket: encode: %v", err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user