mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
rename Format.String() into Format.Codec() (#307)
This commit is contained in:
@@ -98,10 +98,16 @@ func (f *MPEG4AudioGeneric) unmarshal(
|
||||
return nil
|
||||
}
|
||||
|
||||
// Codec implements Format.
|
||||
func (f *MPEG4AudioGeneric) Codec() string {
|
||||
return "MPEG-4 Audio"
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
//
|
||||
// Deprecated: replaced by Codec().
|
||||
func (f *MPEG4AudioGeneric) String() string {
|
||||
// currently, String() returns the codec name, hence hide the format name.
|
||||
return "MPEG4-audio"
|
||||
return f.Codec()
|
||||
}
|
||||
|
||||
// ClockRate implements Format.
|
||||
|
Reference in New Issue
Block a user