[gnome-remote-desktop] rdp-surface: Add pointer to allow tracking the associated GFX surface



commit 096b482dd760336ee81e08264d99fdfb2a763cc5
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Sat Mar 20 17:50:26 2021 +0100

    rdp-surface: Add pointer to allow tracking the associated GFX surface

 src/grd-rdp-surface.c | 1 +
 src/grd-rdp-surface.h | 3 +++
 2 files changed, 4 insertions(+)
---
diff --git a/src/grd-rdp-surface.c b/src/grd-rdp-surface.c
index 3e1814e..e094bc9 100644
--- a/src/grd-rdp-surface.c
+++ b/src/grd-rdp-surface.c
@@ -24,6 +24,7 @@
 void
 grd_rdp_surface_free (GrdRdpSurface *rdp_surface)
 {
+  g_assert (!rdp_surface->gfx_surface);
   g_clear_pointer (&rdp_surface->last_frame, g_free);
   g_clear_pointer (&rdp_surface->pending_frame, g_free);
 
diff --git a/src/grd-rdp-surface.h b/src/grd-rdp-surface.h
index f8de416..2f5e4c7 100644
--- a/src/grd-rdp-surface.h
+++ b/src/grd-rdp-surface.h
@@ -23,6 +23,8 @@
 #include <gio/gio.h>
 #include <stdint.h>
 
+#include "grd-types.h"
+
 struct _GrdRdpSurface
 {
   uint16_t output_origin_x;
@@ -35,6 +37,7 @@ struct _GrdRdpSurface
 
   gboolean valid;
 
+  GrdRdpGfxSurface *gfx_surface;
   gboolean encoding_suspended;
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]