mirror of https://bitbucket.org/ausocean/av.git
revid: updated revid packetsPerClip const from 7 to 560 to speed up data sending
This commit is contained in:
parent
f89e0aefb5
commit
cfff3316b4
|
@ -29,7 +29,6 @@ LICENSE
|
|||
package revid
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"os"
|
||||
|
@ -42,8 +41,6 @@ import (
|
|||
"bitbucket.org/ausocean/utils/smartlogger"
|
||||
)
|
||||
|
||||
var count int = 0
|
||||
|
||||
// loadSender is a destination to send a *ring.Chunk to.
|
||||
// When a loadSender has finished using the *ring.Chunk
|
||||
// it must be Closed.
|
||||
|
@ -139,8 +136,6 @@ func (s *httpSender) send() error {
|
|||
for i, pin := range pins {
|
||||
if pin.Name == "V0" {
|
||||
send = true
|
||||
count += s.chunk.Len()
|
||||
fmt.Println(count)
|
||||
pins[i].Value = s.chunk.Len()
|
||||
pins[i].Data = s.chunk.Bytes()
|
||||
pins[i].MimeType = "video/mp2t"
|
||||
|
|
Loading…
Reference in New Issue