aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-01-23 19:00:05 +0100
committerfiaxh <git@lightrise.org>2022-01-23 19:50:01 +0100
commitb123800f26e78df5b4e01857bc5c2ac6a954ba5b (patch)
tree57c6e9aed7b585b5c288f2a527cc63bcd469f0e4 /plugins
parent19a3fa5e02984f186b5291b24954e1a5140d379e (diff)
downloaddino-b123800f26e78df5b4e01857bc5c2ac6a954ba5b.tar.gz
dino-b123800f26e78df5b4e01857bc5c2ac6a954ba5b.zip
Small cleanup
Diffstat (limited to 'plugins')
-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 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