1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Reduce MaxLate values in diskwriter.

This commit is contained in:
Juliusz Chroboczek 2022-03-21 21:40:33 +01:00
parent de63449150
commit a2ce703512

View file

@ -337,21 +337,21 @@ func newDiskConn(client *Client, directory string, up conn.Up, remoteTracks []co
codec := remote.Codec() codec := remote.Codec()
if strings.EqualFold(codec.MimeType, "audio/opus") { if strings.EqualFold(codec.MimeType, "audio/opus") {
builder = samplebuilder.New( builder = samplebuilder.New(
32, &codecs.OpusPacket{}, codec.ClockRate, 16, &codecs.OpusPacket{}, codec.ClockRate,
) )
} else if strings.EqualFold(codec.MimeType, "video/vp8") { } else if strings.EqualFold(codec.MimeType, "video/vp8") {
builder = samplebuilder.New( builder = samplebuilder.New(
1024, &codecs.VP8Packet{}, codec.ClockRate, 256, &codecs.VP8Packet{}, codec.ClockRate,
) )
conn.hasVideo = true conn.hasVideo = true
} else if strings.EqualFold(codec.MimeType, "video/vp9") { } else if strings.EqualFold(codec.MimeType, "video/vp9") {
builder = samplebuilder.New( builder = samplebuilder.New(
1024, &codecs.VP9Packet{}, codec.ClockRate, 256, &codecs.VP9Packet{}, codec.ClockRate,
) )
conn.hasVideo = true conn.hasVideo = true
} else if strings.EqualFold(codec.MimeType, "video/h264") { } else if strings.EqualFold(codec.MimeType, "video/h264") {
builder = samplebuilder.New( builder = samplebuilder.New(
1024, &codecs.H264Packet{}, codec.ClockRate, 256, &codecs.H264Packet{}, codec.ClockRate,
) )
conn.hasVideo = true conn.hasVideo = true
} else { } else {