mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 13:52:19 +00:00
Fix typo in occurred
This commit is contained in:
parent
c3629bdbb5
commit
772ddb1994
@ -45,7 +45,7 @@ func Serve(inputChannel chan srt.Packet, cfg Options) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error occured while receiving SRT packet of type %s: %s", packet.PacketType, err)
|
log.Printf("Error occurred while receiving SRT packet of type %s: %s", packet.PacketType, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ func handleStreamer(s *srtgo.SrtSocket, name string, clientDataChannels map[stri
|
|||||||
// 5s timeout
|
// 5s timeout
|
||||||
n, err := s.Read(buff, 5000)
|
n, err := s.Read(buff, 5000)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error occured while reading SRT socket:", err)
|
log.Println("Error occurred while reading SRT socket:", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ func StartASCIIArtStream(streamID string, reader io.ReadCloser) {
|
|||||||
for {
|
for {
|
||||||
n, err := reader.Read(pixelBuff)
|
n, err := reader.Read(pixelBuff)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("An error occured while reading input: %s", err)
|
log.Printf("An error occurred while reading input: %s", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if n == 0 {
|
if n == 0 {
|
||||||
|
@ -51,7 +51,7 @@ func ingestFrom(inputChannel chan srt.Packet) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error occured while receiving SRT srtPacket of type %s: %s", srtPacket.PacketType, err)
|
log.Printf("Error occurred while receiving SRT srtPacket of type %s: %s", srtPacket.PacketType, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user