diff --git a/timeside/core/tools/gstutils.py b/timeside/core/tools/gstutils.py
index <HASH>..<HASH> 100644
--- a/timeside/core/tools/gstutils.py
+++ b/timeside/core/tools/gstutils.py
@@ -1,4 +1,4 @@
-from numpy import getbuffer, frombuffer
+from numpy import frombuffer
 
 import gi
 gi.require_version('Gst', '1.0')
@@ -11,12 +11,11 @@ import threading
 
 
 def numpy_array_to_gst_buffer(frames, chunk_size, num_samples, sample_rate):
-    from gst import Buffer
     """ gstreamer buffer to numpy array conversion """
-    buf = Buffer(getbuffer(frames.astype("float32")))
+    buf = Gst.Buffer(frames.astype("float32").tobytes())
     # Set its timestamp and duration
-    buf.timestamp = gst.util_uint64_scale(num_samples, gst.SECOND, sample_rate)
-    buf.duration = gst.util_uint64_scale(chunk_size, gst.SECOND, sample_rate)
+    buf.timestamp = Gst.util_uint64_scale(num_samples, Gst.SECOND, sample_rate)
+    buf.duration = Gst.util_uint64_scale(chunk_size, Gst.SECOND, sample_rate)
     return buf
[core] update numpy_array_to_gst_buffer to gst-<I>

The function frombuffer is not available anymore in most recent versions of
numpy. Use np.array.tobytes() instead. Also avoid import in that function.