diff options
author | Marvin W <git@larma.de> | 2022-08-21 20:02:48 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2022-08-21 20:02:48 +0200 |
commit | 0aa73c4569a90031d8a88173f8689c18d02ddbe2 (patch) | |
tree | 03239198a201ae8682a56d8803ca069fbfc9508a /plugins/rtp/src | |
parent | e85477bb19166e742e34852b2a99b33e55565ded (diff) | |
download | dino-0aa73c4569a90031d8a88173f8689c18d02ddbe2.tar.gz dino-0aa73c4569a90031d8a88173f8689c18d02ddbe2.zip |
RTP: Use gstreamers new VideoFrame.map
Diffstat (limited to 'plugins/rtp/src')
-rw-r--r-- | plugins/rtp/src/video_widget.vala | 4 |
1 files changed, 2 insertions, 2 deletions
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]); |