From e51b55432fe98e0fbc036fe785ef50fbf1589034 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 27 Jul 2022 19:41:05 +0200 Subject: Gtk4 bug fixes and improvements --- plugins/rtp/CMakeLists.txt | 4 ++++ plugins/rtp/src/video_widget.vala | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'plugins/rtp') diff --git a/plugins/rtp/CMakeLists.txt b/plugins/rtp/CMakeLists.txt index 33903d88..3a24c31c 100644 --- a/plugins/rtp/CMakeLists.txt +++ b/plugins/rtp/CMakeLists.txt @@ -28,6 +28,10 @@ if(GstRtp_VERSION VERSION_GREATER "1.20") set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_20) endif() +if(VALA_VERSION VERSION_GREATER "0.56.1") + set(RTP_DEFINITIONS ${RTP_DEFINITIONS} VALA_0_56_1) +endif() + set(RTP_ENABLE_VP9 "no" CACHE BOOL "Enable VP9 support") if(RTP_ENABLE_VP9) set(RTP_DEFINITIONS ${RTP_DEFINITIONS} ENABLE_VP9) diff --git a/plugins/rtp/src/video_widget.vala b/plugins/rtp/src/video_widget.vala index 6afa0c03..c22e8440 100644 --- a/plugins/rtp/src/video_widget.vala +++ b/plugins/rtp/src/video_widget.vala @@ -97,7 +97,14 @@ public class Dino.Plugins.Rtp.Sink : Gst.Video.Sink { } } +#if VALA_0_56_1 public override Gst.Caps get_caps(Gst.Caps? filter) { +#if 0 + } +#endif +#else + public override Gst.Caps get_caps(Gst.Caps filter) { +#endif Gst.Caps caps = Gst.Caps.from_string("video/x-raw, format={ BGRA, ARGB, RGBA, ABGR, RGB, BGR }"); if (filter != null) { -- cgit v1.2.3-70-g09d2