mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
MapInfo: Fix ArgumentOutOfRangeException
Respect the value's length so there is no exception when value doesn't contain size's bytes.
This commit is contained in:
parent
0c840b69af
commit
2bf30fd612
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ namespace Gst {
|
|||
return data;
|
||||
}
|
||||
set {
|
||||
Marshal.Copy (value, 0, _data, Data.Length);
|
||||
Marshal.Copy (value, 0, _data, value.Length);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue