mirror of
https://github.com/aler9/gortsplib
synced 2025-11-02 21:14:07 +08:00
rename Format.String() into Format.Codec() (#307)
This commit is contained in:
@@ -53,11 +53,18 @@ func (f *LPCM) unmarshal(payloadType uint8, clock string, codec string, _ string
|
||||
return nil
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
func (f *LPCM) String() string {
|
||||
// Codec implements Format.
|
||||
func (f *LPCM) Codec() string {
|
||||
return "LPCM"
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
//
|
||||
// Deprecated: replaced by Codec().
|
||||
func (f *LPCM) String() string {
|
||||
return f.Codec()
|
||||
}
|
||||
|
||||
// ClockRate implements Format.
|
||||
func (f *LPCM) ClockRate() int {
|
||||
return f.SampleRate
|
||||
|
||||
Reference in New Issue
Block a user