mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
mxf: Correctly initialize memory
This commit is contained in:
parent
89d9aaee48
commit
454b1931bc
1 changed files with 2 additions and 1 deletions
|
@ -1537,10 +1537,11 @@ mxf_local_tag_add_to_hash_table (const MXFPrimerPack * primer,
|
|||
GST_DEBUG ("Adding local tag 0x%04x with UL %s and size %u", tag,
|
||||
mxf_ul_to_string (ul, str), tag_size);
|
||||
|
||||
local_tag = g_slice_new (MXFLocalTag);
|
||||
local_tag = g_slice_new0 (MXFLocalTag);
|
||||
memcpy (&local_tag->ul, ul, sizeof (MXFUL));
|
||||
local_tag->size = tag_size;
|
||||
local_tag->data = g_memdup (tag_data, tag_size);
|
||||
local_tag->g_slice = FALSE;
|
||||
|
||||
g_hash_table_insert (*hash_table, &local_tag->ul, local_tag);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue