mirror of
https://github.com/aler9/gortsplib
synced 2025-10-19 05:24:44 +08:00
rename Format.String() into Format.Codec() (#307)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package formats
|
||||
package formats //nolint:dupl
|
||||
|
||||
import (
|
||||
"github.com/pion/rtp"
|
||||
@@ -12,11 +12,18 @@ func (f *MPEGTS) unmarshal(_ uint8, _ string, _ string, _ string, _ map[string]s
|
||||
return nil
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
func (f *MPEGTS) String() string {
|
||||
// Codec implements Format.
|
||||
func (f *MPEGTS) Codec() string {
|
||||
return "MPEG-TS"
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
//
|
||||
// Deprecated: replaced by Codec().
|
||||
func (f *MPEGTS) String() string {
|
||||
return f.Codec()
|
||||
}
|
||||
|
||||
// ClockRate implements Format.
|
||||
func (f *MPEGTS) ClockRate() int {
|
||||
return 90000
|
||||
|
Reference in New Issue
Block a user