mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +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:
@@ -95,16 +95,6 @@ func (t *Generic) Marshal() (string, string) {
|
||||
return t.RTPMap, t.FMTP
|
||||
}
|
||||
|
||||
// Clone implements Format.
|
||||
func (t *Generic) Clone() Format {
|
||||
return &Generic{
|
||||
PayloadTyp: t.PayloadTyp,
|
||||
RTPMap: t.RTPMap,
|
||||
FMTP: t.FMTP,
|
||||
ClockRat: t.ClockRat,
|
||||
}
|
||||
}
|
||||
|
||||
// PTSEqualsDTS implements Format.
|
||||
func (t *Generic) PTSEqualsDTS(*rtp.Packet) bool {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user