Skip to content
Snippets Groups Projects

Plot horizon distance from ranking statistics

Merged ChiWai Chan requested to merge plot_psd_horizon into master
1 unresolved thread
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -374,7 +374,12 @@ class Stream(ElementRegistry):
success, mapinfo = memory.map(Gst.MapFlags.READ)
assert success
if mapinfo.data:
rows = cls._caps_buffer_map[caps.to_string()](mapinfo.data)
# FIXME: gst-python 1.18 returns a memoryview
# instead of a read-only bytes-like object, so
# cast to bytes. this is likely inefficient but
# a proper solution will require .from_buffer()
# to leverage the buffer protocol instead
rows = cls._caps_buffer_map[caps.to_string()](bytes(mapinfo.data))
data.extend(rows)
memory.unmap(mapinfo)
Loading