aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/call_window/call_window.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2025-04-09 20:02:55 +0200
committerMarvin W <git@larma.de>2025-04-09 20:05:13 +0200
commit50eeb2f16dfa4342d50086404da068f5426cbe3c (patch)
tree3738913a2661af3d738fc5ce14d76497c6a29b5e /main/src/ui/call_window/call_window.vala
parent75b5aa91716e962ff38a35f7bb21aab384e35232 (diff)
RTP: Tear down most of GStreamer while not in a call.
This includes #1679 and works around an upstream bug in pipewire causing #1685
Diffstat (limited to 'main/src/ui/call_window/call_window.vala')
-rw-r--r--main/src/ui/call_window/call_window.vala4
1 files changed, 2 insertions, 2 deletions
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<string, ParticipantWidget> participant_widgets = new HashMap<string, ParticipantWidget>();
private ArrayList<string> participants = new ArrayList<string>();
@@ -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);
}