Add FmptLine to Track info

This commit is contained in:
Alexey Khit
2023-02-25 17:08:32 +03:00
parent bd9b69d0d5
commit eca79f1c0b
+3
View File
@@ -30,6 +30,9 @@ func NewTrack2(media *Media, codec *Codec) *Track {
func (t *Track) String() string {
s := t.Codec.String()
if t.Codec.FmtpLine != "" {
s += " " + t.Codec.FmtpLine
}
if t.sinkMu.TryRLock() {
s += fmt.Sprintf(", sinks=%d", len(t.sink))
t.sinkMu.RUnlock()