fix: init m
This commit is contained in:
parent
d52e20c0e1
commit
1b950bae08
|
@ -220,6 +220,8 @@ func (m *mediaMap) DecodeMsgpack(dec *msgpack.Decoder) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*m = make(map[string][]MediaFormat, mapLen)
|
||||||
|
|
||||||
for i := 0; i < mapLen; i++ {
|
for i := 0; i < mapLen; i++ {
|
||||||
typ, err := dec.DecodeString()
|
typ, err := dec.DecodeString()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue