Be more specific in error message

This commit is contained in:
Ingo Oppermann 2024-05-30 22:41:35 +02:00
parent 4341d71645
commit 9c6cb8a1c9

View File

@ -1718,8 +1718,8 @@ func (conn *Conn) readChunk() (err error) {
if cs.sametscount > 10 { if cs.sametscount > 10 {
if cs.msgcount < 20 { // only consider the first video and audio messages if cs.msgcount < 20 { // only consider the first video and audio messages
cs.genwallclocktime = true cs.genwallclocktime = true
} else { } else { // otherwise bail out
err = fmt.Errorf("detected sequence of non-changing timestamps: %d", cs.timenow) err = fmt.Errorf("detected sequence of non-changing timestamps: %d (msgtypeid %d)", cs.timenow, cs.msgtypeid)
return return
} }
} }