fixed server initiated negotiation

This commit is contained in:
David Zhao
2020-11-11 00:02:37 -08:00
parent 40be24bf60
commit 256328c4ff
5 changed files with 65 additions and 28 deletions
+2
View File
@@ -76,10 +76,12 @@ func (w *TrackWriter) writeOgg() {
if err == io.EOF {
logger.GetLogger().Infow("all audio samples parsed and sent")
w.onWriteComplete()
return
}
if err != nil {
logger.GetLogger().Errorw("could not parse ogg page", "err", err)
return
}
// The amount of samples is the difference between the last and current timestamp