Skip to content

Commit b9fbec2

Browse files
tab1293Sean-Der
authored andcommitted
Update g_memdup call to g_memdup2
1 parent 7c4e967 commit b9fbec2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gstreamer-sink/gst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void gstreamer_receive_stop_pipeline(GstElement *pipeline) { gst_element_set_sta
5454
void gstreamer_receive_push_buffer(GstElement *pipeline, void *buffer, int len) {
5555
GstElement *src = gst_bin_get_by_name(GST_BIN(pipeline), "src");
5656
if (src != NULL) {
57-
gpointer p = g_memdup(buffer, len);
57+
gpointer p = g_memdup2(buffer, len);
5858
GstBuffer *buffer = gst_buffer_new_wrapped(p, len);
5959
gst_app_src_push_buffer(GST_APP_SRC(src), buffer);
6060
gst_object_unref(src);

0 commit comments

Comments
 (0)