[gnome-remote-desktop] session-rdp: Add handling to tear down display control channel
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-rdp: Add handling to tear down display control channel
- Date: Wed, 10 Aug 2022 10:10:19 +0000 (UTC)
commit eea0e3c0d5a3fb6232f899cf80e29d568e6c066d
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Sat Jun 18 08:31:28 2022 +0200
session-rdp: Add handling to tear down display control channel
This allows tearing down the display control channel, when e.g. the DVC
creation failed.
src/grd-session-rdp.c | 3 +++
src/grd-session-rdp.h | 1 +
2 files changed, 4 insertions(+)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index cc1b00d2..78f5d9fe 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -818,6 +818,9 @@ grd_session_rdp_tear_down_channel (GrdSessionRdp *session_rdp,
case GRD_RDP_CHANNEL_AUDIO_PLAYBACK:
g_clear_object (&rdp_peer_context->audio_playback);
break;
+ case GRD_RDP_CHANNEL_DISPLAY_CONTROL:
+ g_clear_object (&rdp_peer_context->display_control);
+ break;
case GRD_RDP_CHANNEL_TELEMETRY:
g_clear_object (&rdp_peer_context->telemetry);
break;
diff --git a/src/grd-session-rdp.h b/src/grd-session-rdp.h
index 15b4c917..71577a8b 100644
--- a/src/grd-session-rdp.h
+++ b/src/grd-session-rdp.h
@@ -44,6 +44,7 @@ typedef enum _GrdRdpChannel
{
GRD_RDP_CHANNEL_NONE,
GRD_RDP_CHANNEL_AUDIO_PLAYBACK,
+ GRD_RDP_CHANNEL_DISPLAY_CONTROL,
GRD_RDP_CHANNEL_TELEMETRY,
} GrdRdpChannel;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]