diff options
author | Philippe Normand <philn@igalia.com> | 2021-07-13 16:55:30 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-13 16:03:10 +0000 |
commit | 108eba3603c89762080a64aff1e8ed96381eb997 (patch) | |
tree | b635f8ac8d29473417816a8644919be70d5f8000 /ext | |
parent | 55ccc581b2161e41018bc7ca824cb792a4d2426f (diff) | |
download | gstreamer-plugins-bad-108eba3603c89762080a64aff1e8ed96381eb997.tar.gz |
wpesrcbin: Use gst_buffer_new_memdup()
g_memdup() is deprecated.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2406>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/wpe/gstwpesrcbin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |