From 0aa73c4569a90031d8a88173f8689c18d02ddbe2 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 21 Aug 2022 20:02:48 +0200 Subject: RTP: Use gstreamers new VideoFrame.map --- plugins/rtp/src/video_widget.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/rtp/src') diff --git a/plugins/rtp/src/video_widget.vala b/plugins/rtp/src/video_widget.vala index 6afa0c03..af2a9f1d 100644 --- a/plugins/rtp/src/video_widget.vala +++ b/plugins/rtp/src/video_widget.vala @@ -122,10 +122,10 @@ public class Dino.Plugins.Rtp.Sink : Gst.Video.Sink { } private Gdk.Texture texture_from_buffer(Gst.Buffer buffer, out double pixel_aspect_ratio) { - Gst.Video.Frame frame; + Gst.Video.Frame frame = Gst.Video.Frame(); Gdk.Texture texture; - if (Gst.Video.frame_map(out frame, info, buffer, Gst.MapFlags.READ)) { + if (frame.map(info, buffer, Gst.MapFlags.READ)) { unowned Gst.Video.Info info = gst_video_frame_get_video_info(frame); Bytes bytes = new Bytes.take(gst_video_frame_get_data(frame)); texture = new Gdk.MemoryTexture(info.width, info.height, memory_format_from_video(info.finfo.format), bytes, info.stride[0]); -- cgit v1.2.3-70-g09d2