From: Philippe Normand Date: Tue, 13 Jul 2021 15:55:30 +0000 (+0100) Subject: wpesrcbin: Use gst_buffer_new_memdup() X-Git-Tag: 1.19.3~507^2~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=108eba3603c89762080a64aff1e8ed96381eb997;p=platform%2Fupstream%2Fgstreamer.git wpesrcbin: Use gst_buffer_new_memdup() g_memdup() is deprecated. Part-of: --- diff --git a/ext/wpe/gstwpesrcbin.cpp b/ext/wpe/gstwpesrcbin.cpp index dd49ff7..6a683d2 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);