[gnome-remote-desktop] rdp-graphics-pipeline: Return success value after sending frame



commit 835d9fdf01fce88a91435c350534d166c83ac206
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Mon Jul 4 07:22:50 2022 +0200

    rdp-graphics-pipeline: Return success value after sending frame
    
    This value will be used in the next commit, when determining some
    session metrics.

 src/grd-rdp-graphics-pipeline.c | 4 +++-
 src/grd-rdp-graphics-pipeline.h | 6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/grd-rdp-graphics-pipeline.c b/src/grd-rdp-graphics-pipeline.c
index f2f266fc..bf244432 100644
--- a/src/grd-rdp-graphics-pipeline.c
+++ b/src/grd-rdp-graphics-pipeline.c
@@ -1036,7 +1036,7 @@ ensure_rtt_receivement (GrdRdpGraphicsPipeline *graphics_pipeline)
                    graphics_pipeline->pipeline_context);
 }
 
-void
+gboolean
 grd_rdp_graphics_pipeline_refresh_gfx (GrdRdpGraphicsPipeline *graphics_pipeline,
                                        GrdRdpSurface          *rdp_surface,
                                        GrdRdpBuffer           *buffer)
@@ -1104,6 +1104,8 @@ grd_rdp_graphics_pipeline_refresh_gfx (GrdRdpGraphicsPipeline *graphics_pipeline
         ensure_rtt_receivement (graphics_pipeline);
       g_mutex_unlock (&graphics_pipeline->gfx_mutex);
     }
+
+  return success;
 }
 
 static void
diff --git a/src/grd-rdp-graphics-pipeline.h b/src/grd-rdp-graphics-pipeline.h
index e3346cf3..9bf2fc8b 100644
--- a/src/grd-rdp-graphics-pipeline.h
+++ b/src/grd-rdp-graphics-pipeline.h
@@ -58,8 +58,8 @@ void grd_rdp_graphics_pipeline_reset_graphics (GrdRdpGraphicsPipeline *graphics_
 void grd_rdp_graphics_pipeline_notify_new_round_trip_time (GrdRdpGraphicsPipeline *graphics_pipeline,
                                                            uint64_t                round_trip_time_us);
 
-void grd_rdp_graphics_pipeline_refresh_gfx (GrdRdpGraphicsPipeline *graphics_pipeline,
-                                            GrdRdpSurface          *rdp_surface,
-                                            GrdRdpBuffer           *buffer);
+gboolean grd_rdp_graphics_pipeline_refresh_gfx (GrdRdpGraphicsPipeline *graphics_pipeline,
+                                                GrdRdpSurface          *rdp_surface,
+                                                GrdRdpBuffer           *buffer);
 
 #endif /* GRD_RDP_GRAPHICS_PIPELINE_H */


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