fix: init mmd.Data
This commit is contained in:
parent
28ff1eed48
commit
9485c023e7
|
@ -29,6 +29,8 @@ func (mmd *MediaMetadataDetails) DecodeMsgpack(dec *msgpack.Decoder) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mmd.Data = make(map[int]interface{}, mapLen)
|
||||||
|
|
||||||
for i := 0; i < mapLen; i++ {
|
for i := 0; i < mapLen; i++ {
|
||||||
key, err := dec.DecodeInt8()
|
key, err := dec.DecodeInt8()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue