Fix bug with no stream from some Dahua cameras

This commit is contained in:
Alexey Khit
2023-01-29 18:55:37 +03:00
parent bef8e6454d
commit 500b8720d5
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (c *Conn) GetTrack(media *streamer.Media, codec *streamer.Codec) *streamer.
return streamer.NewTrack(codec, media.Direction)
}
track, err := c.SetupMedia(media, codec)
track, err := c.SetupMedia(media, codec, true)
if err != nil {
return nil
}