diff options
Diffstat (limited to 'plugins')
-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 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 |