Fix MJPEG processing for wallpanel project #248
This commit is contained in:
@@ -122,7 +122,11 @@ func (c *Client) startJPEG() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) startMJPEG(boundary string) error {
|
func (c *Client) startMJPEG(boundary string) error {
|
||||||
|
// some cameras add prefix to boundary header:
|
||||||
|
// https://github.com/TheTimeWalker/wallpanel-android
|
||||||
|
if !strings.HasPrefix(boundary, "--") {
|
||||||
boundary = "--" + boundary
|
boundary = "--" + boundary
|
||||||
|
}
|
||||||
|
|
||||||
r := bufio.NewReader(c.res.Body)
|
r := bufio.NewReader(c.res.Body)
|
||||||
tp := textproto.NewReader(r)
|
tp := textproto.NewReader(r)
|
||||||
|
|||||||
Reference in New Issue
Block a user