From b123800f26e78df5b4e01857bc5c2ac6a954ba5b Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 23 Jan 2022 19:00:05 +0100 Subject: Small cleanup --- plugins/rtp/src/video_widget.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/rtp') diff --git a/plugins/rtp/src/video_widget.vala b/plugins/rtp/src/video_widget.vala index 76e4dcca..a9ca7504 100644 --- a/plugins/rtp/src/video_widget.vala +++ b/plugins/rtp/src/video_widget.vala @@ -41,7 +41,7 @@ public class Dino.Plugins.Rtp.VideoWidget : Gtk.Bin, Dino.Plugins.VideoCallWidge } public void input_caps_changed(GLib.Object pad, ParamSpec spec) { - Gst.Caps? caps = (pad as Gst.Pad).caps; + Gst.Caps? caps = ((Gst.Pad)pad).caps; if (caps == null) return; int width, height; @@ -54,7 +54,7 @@ public class Dino.Plugins.Rtp.VideoWidget : Gtk.Bin, Dino.Plugins.VideoCallWidge if (prepare != null) { Gst.Element crop = ((Gst.Bin)prepare).get_by_name(@"video_widget_$(id)_crop"); if (crop != null) { - Value ratio = new Value(typeof(Gst.Fraction)); + Value ratio = Value(typeof(Gst.Fraction)); #if VALA_0_52 Gst.Value.set_fraction(ref ratio, allocation.width, allocation.height); #else -- cgit v1.2.3-54-g00ecf