data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
EXPECT_NE (gst_harness_push (h, in_buf), GST_FLOW_OK);
data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
/* 2nd mem block (invalid size) */
data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
EXPECT_NE (gst_harness_push (h, in_buf), GST_FLOW_OK);
data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
/* 2nd mem block (invalid, unnecessary block) */
data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
EXPECT_NE (gst_harness_push (h, in_buf), GST_FLOW_OK);
data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
EXPECT_NE (gst_harness_push (h, in_buf), GST_FLOW_OK);
data = g_malloc0 (data_size);
gst_tensor_meta_info_update_header (&meta, data);
- mem = gst_memory_new_wrapped (
- GST_MEMORY_FLAG_READONLY, data, data_size, 0, data_size, data, g_free);
+ mem = gst_memory_new_wrapped ((GstMemoryFlags) 0, data, data_size,
+ 0, data_size, data, g_free);
gst_buffer_append_memory (in_buf, mem);
EXPECT_EQ (gst_harness_push (h, in_buf), GST_FLOW_OK);