Browse Source

规范性改动

pull/121/head
mask-pp 5 years ago
parent
commit
57a7b19671
  1. 2
      protocol/httpflv/writer.go
  2. 1
      protocol/rtmp/rtmp.go
  3. 2
      protocol/rtmp/rtmprelay/rtmprelay.go
  4. 1
      test.go

2
protocol/httpflv/writer.go

@ -154,8 +154,6 @@ func (flvWriter *FLVWriter) SendPacket() error { @@ -154,8 +154,6 @@ func (flvWriter *FLVWriter) SendPacket() error {
}
}
return nil
}
func (flvWriter *FLVWriter) Wait() {

1
protocol/rtmp/rtmp.go

@ -329,7 +329,6 @@ func (v *VirWriter) SendPacket() error { @@ -329,7 +329,6 @@ func (v *VirWriter) SendPacket() error {
}
}
return nil
}
func (v *VirWriter) Info() (ret av.Info) {

2
protocol/rtmp/rtmprelay/rtmprelay.go

@ -86,7 +86,7 @@ func (self *RtmpRelay) sendPublishChunkStream() { @@ -86,7 +86,7 @@ func (self *RtmpRelay) sendPublishChunkStream() {
func (self *RtmpRelay) Start() error {
if self.startflag {
return fmt.Errorf("The rtmprelay already started, playurl=%s, publishurl=%s", self.PlayUrl, self.PublishUrl)
return fmt.Errorf("The rtmprelay already started, playurl=%s, publishurl=%s\n", self.PlayUrl, self.PublishUrl)
}
self.connectPlayClient = core.NewConnClient()

1
test.go

@ -0,0 +1 @@ @@ -0,0 +1 @@
package main
Loading…
Cancel
Save