mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
use random UUIDs as media IDs (#163)
* remove Medias.Clone(), Media.Clone(), Format.Clone() * server: use random UUIDs as media IDs * client: use random UUIDs as media IDs
This commit is contained in:
@@ -100,16 +100,6 @@ func (t *VP9) Marshal() (string, string) {
|
||||
return "VP9/90000", fmtp
|
||||
}
|
||||
|
||||
// Clone implements Format.
|
||||
func (t *VP9) Clone() Format {
|
||||
return &VP9{
|
||||
PayloadTyp: t.PayloadTyp,
|
||||
MaxFR: t.MaxFR,
|
||||
MaxFS: t.MaxFS,
|
||||
ProfileID: t.ProfileID,
|
||||
}
|
||||
}
|
||||
|
||||
// PTSEqualsDTS implements Format.
|
||||
func (t *VP9) PTSEqualsDTS(*rtp.Packet) bool {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user