mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +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:
@@ -89,16 +89,6 @@ func (t *LPCM) Marshal() (string, string) {
|
||||
"/" + strconv.FormatInt(int64(t.ChannelCount), 10), ""
|
||||
}
|
||||
|
||||
// Clone implements Format.
|
||||
func (t *LPCM) Clone() Format {
|
||||
return &LPCM{
|
||||
PayloadTyp: t.PayloadTyp,
|
||||
BitDepth: t.BitDepth,
|
||||
SampleRate: t.SampleRate,
|
||||
ChannelCount: t.ChannelCount,
|
||||
}
|
||||
}
|
||||
|
||||
// PTSEqualsDTS implements Format.
|
||||
func (t *LPCM) PTSEqualsDTS(*rtp.Packet) bool {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user