Skip to content

Commit

Permalink
Merge pull request #29 from jwmwalrus/master
Browse files Browse the repository at this point in the history
Fix memdup deprecation warning
  • Loading branch information
notedit authored Jan 16, 2022
2 parents 4c7f44b + ec32935 commit 0a896ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void X_gst_pipeline_set_latency(GstElement* element, GstClockTime clockTime) {

GstFlowReturn X_gst_app_src_push_buffer(GstElement* element, void *buffer,int len) {

gpointer p = g_memdup(buffer, len);
gpointer p = g_memdup2(buffer, len);
GstBuffer *data = gst_buffer_new_wrapped(p, len);

return gst_app_src_push_buffer(GST_APP_SRC(element), data);
Expand Down

0 comments on commit 0a896ea

Please sign in to comment.