projects
/
gst-aseq-appsrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
536a560
)
Replace g_malloc+memcpy with g_memdup
author
Antonio Ospite <ao2@ao2.it>
Mon, 25 Sep 2017 09:47:12 +0000
(11:47 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Tue, 3 Oct 2017 10:48:35 +0000
(12:48 +0200)
gst-aseq-appsrc.c
patch
|
blob
|
history
diff --git
a/gst-aseq-appsrc.c
b/gst-aseq-appsrc.c
index
d15ed6e
..
b6d38d0
100644
(file)
--- a/
gst-aseq-appsrc.c
+++ b/
gst-aseq-appsrc.c
@@
-186,8
+186,7
@@
push_buffer (App * app, gpointer data, guint size)
GST_BUFFER_OFFSET (buffer) = time;
GST_BUFFER_DURATION (buffer) = DEFAULT_TICK_PERIOD_MS * GST_MSECOND;
- local_data = g_malloc (size);
- memcpy (local_data, data, size);
+ local_data = g_memdup (data, size);
gst_buffer_append_memory (buffer,
gst_memory_new_wrapped (0, local_data, size, 0, size, local_data,