Skip to content

Commit

Permalink
Update g_memdup call to g_memdup2
Browse files Browse the repository at this point in the history
  • Loading branch information
tab1293 authored and Sean-Der committed Nov 28, 2021
1 parent 7c4e967 commit b9fbec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gstreamer-sink/gst.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void gstreamer_receive_stop_pipeline(GstElement *pipeline) { gst_element_set_sta
void gstreamer_receive_push_buffer(GstElement *pipeline, void *buffer, int len) {
GstElement *src = gst_bin_get_by_name(GST_BIN(pipeline), "src");
if (src != NULL) {
gpointer p = g_memdup(buffer, len);
gpointer p = g_memdup2(buffer, len);
GstBuffer *buffer = gst_buffer_new_wrapped(p, len);
gst_app_src_push_buffer(GST_APP_SRC(src), buffer);
gst_object_unref(src);
Expand Down

0 comments on commit b9fbec2

Please sign in to comment.