aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/video_widget.vala
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rtp/src/video_widget.vala')
-rw-r--r--plugins/rtp/src/video_widget.vala4
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]);