From 50eeb2f16dfa4342d50086404da068f5426cbe3c Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 9 Apr 2025 20:02:55 +0200 Subject: RTP: Tear down most of GStreamer while not in a call. This includes #1679 and works around an upstream bug in pipewire causing #1685 --- main/src/ui/call_window/call_window.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/ui/call_window/call_window.vala') diff --git a/main/src/ui/call_window/call_window.vala b/main/src/ui/call_window/call_window.vala index 08ea4b21..54e290a7 100644 --- a/main/src/ui/call_window/call_window.vala +++ b/main/src/ui/call_window/call_window.vala @@ -18,7 +18,6 @@ namespace Dino.Ui { public HeaderBar header_bar = new HeaderBar() { valign=Align.START, halign=Align.END, show_title_buttons=true, opacity=0.0 }; public Revealer header_bar_revealer = new Revealer() { halign=Align.END, valign=Align.START, transition_type=RevealerTransitionType.SLIDE_LEFT, transition_duration=200, reveal_child=false }; public Box own_video_box = new Box(Orientation.HORIZONTAL, 0) { halign=Align.END, valign=Align.END }; - private Widget? own_video = null; private HashMap participant_widgets = new HashMap(); private ArrayList participants = new ArrayList(); @@ -98,6 +97,7 @@ namespace Dino.Ui { } public void remove_participant(string participant) { + participant_widgets[participant].set_video(new Adw.Bin()); participants.remove(participant); grid.remove(participant_widgets[participant]); participant_widgets.unset(participant); @@ -167,7 +167,7 @@ namespace Dino.Ui { public void set_own_video(Widget? widget_) { unset_own_video(); - own_video = widget_; + Widget? own_video = widget_; if (own_video == null) { own_video = new Box(Orientation.HORIZONTAL, 0); } -- cgit v1.3