From 108eba3603c89762080a64aff1e8ed96381eb997 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Tue, 13 Jul 2021 16:55:30 +0100 Subject: wpesrcbin: Use gst_buffer_new_memdup() g_memdup() is deprecated. Part-of: --- ext/wpe/gstwpesrcbin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/wpe/gstwpesrcbin.cpp b/ext/wpe/gstwpesrcbin.cpp index dd49ff715..6a683d2e8 100644 --- a/ext/wpe/gstwpesrcbin.cpp +++ b/ext/wpe/gstwpesrcbin.cpp @@ -276,7 +276,7 @@ gst_wpe_src_push_audio_buffer (GstWpeSrc* src, guint32 id, guint64 size) GST_TRACE_OBJECT (audio_pad, "Handling incoming audio packet"); gpointer data = mmap (0, size, PROT_READ, MAP_PRIVATE, audio_pad->fd, 0); - buffer = gst_buffer_new_wrapped (g_memdup(data, size), size); + buffer = gst_buffer_new_memdup (data, size); munmap (data, size); gst_buffer_add_audio_meta (buffer, &audio_pad->info, size, NULL); -- cgit v1.2.1