mirror of
https://github.com/aler9/gortsplib
synced 2025-10-16 12:10:48 +08:00
rename Format.String() into Format.Codec() (#307)
This commit is contained in:
@@ -14,11 +14,18 @@ func (f *MJPEG) unmarshal(_ uint8, _ string, _ string, _ string, _ map[string]st
|
||||
return nil
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
func (f *MJPEG) String() string {
|
||||
// Codec implements Format.
|
||||
func (f *MJPEG) Codec() string {
|
||||
return "M-JPEG"
|
||||
}
|
||||
|
||||
// String implements Format.
|
||||
//
|
||||
// Deprecated: replaced by Codec().
|
||||
func (f *MJPEG) String() string {
|
||||
return f.Codec()
|
||||
}
|
||||
|
||||
// ClockRate implements Format.
|
||||
func (f *MJPEG) ClockRate() int {
|
||||
return 90000
|
||||
|
Reference in New Issue
Block a user